# Class: com.pnfsoftware.jeb.core.output.UnitItemIdGenerator

Generate unique item IDs for objects managed by units. Not thread\-safe. 

 Ideally, units should generate item IDs. It is sometimes impractical. In those cases, they can use this generator to retrieve a unique ID associated to any object. \(In short, this is akin to [System#identityHashCode(Object)](System#identityHashCode(Object)), with the crucial difference that an id is unique to a given object, for as long as that object exists. Once an object is reclaimed by the GC, its ID may be reused.\)

## Constructor: UnitItemIdGenerator


## Field: expungeCount
Type: `long`

## Method: generate
- parameter: `object`, type: `java.lang.Object`
- return type: `long`


## Method: nextIndex
- return type: `int`


## Method: realsize
- return type: `int`


## Method: retrieve
- parameter: `id`, type: `long`
- return type: `java.lang.Object`


## Method: size
- return type: `int`


