public class

UnitItemIdGenerator

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.UnitItemIdGenerator

Class Overview

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 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.)

Summary

Fields
public long expungeCount
Public Constructors
UnitItemIdGenerator()
Public Methods
long generate(Object object)
int nextIndex()
int realsize()
Object retrieve(long id)
int size()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public long expungeCount

Public Constructors

public UnitItemIdGenerator ()

Public Methods

public long generate (Object object)

public int nextIndex ()

public int realsize ()

public Object retrieve (long id)

public int size ()