Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.io.pof
Class PofBufferWriter.ReferenceLibrary

java.lang.Object
  extended by com.tangosol.io.pof.PofBufferWriter.ReferenceLibrary

Enclosing class:
PofBufferWriter

public static class PofBufferWriter.ReferenceLibrary
extends java.lang.Object

A "library" of object references and their corresponding identities in the POF stream.


Field Summary
protected  java.util.IdentityHashMap m_mapIdentities
          A map from objects that can be referenced to their Integer identities.

 

Constructor Summary
PofBufferWriter.ReferenceLibrary()
           

 

Method Summary
 int getIdentity(java.lang.Object o)
          Look up an identity for an object.
 int registerReference(java.lang.Object o)
          Register an object.

 

Field Detail

m_mapIdentities

protected java.util.IdentityHashMap m_mapIdentities
A map from objects that can be referenced to their Integer identities.

Constructor Detail

PofBufferWriter.ReferenceLibrary

public PofBufferWriter.ReferenceLibrary()

Method Detail

getIdentity

public int getIdentity(java.lang.Object o)
Look up an identity for an object.
Parameters:
o - the object
Returns:
the identity, or -1 if the object is not registered

registerReference

public int registerReference(java.lang.Object o)
Register an object.
Parameters:
o - the object
Returns:
the assigned identity for the object
Throws:
java.lang.IllegalStateException - if the object is already registered

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.