public static class PofBufferWriter.ReferenceLibrary extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IdentityHashMap |
m_mapIdentities
A map from objects that can be referenced to their Integer identities.
|
| Constructor and Description |
|---|
ReferenceLibrary() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIdentity(Object o)
Look up an identity for an object.
|
int |
registerReference(Object o)
Register an object.
|
protected IdentityHashMap m_mapIdentities
public int getIdentity(Object o)
o - the objectpublic int registerReference(Object o)
o - the objectIllegalStateException - if the object is already registered