public class IdManager<K> extends IdManagerBase<K>
hashCode()/equals()
-semantics.
Note that obtaining a unique id from this class for an object prevents it from being garbage collected.
Constructor and Description |
---|
IdManager()
Create new id manager
|
IdManager(java.util.Map<K,java.lang.Integer> initialMap)
Creates a new id manager that used the given map as initial object->id
map.
|
clear, obtainId