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
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Fields
Public Constructors
public
UnitItemIdGenerator
()
Public Methods
public
long
generate
(Object object)
public
Object
retrieve
(long id)