org.jboss.cache.marshall
Class UnmarshalledReferences

java.lang.Object
  extended by org.jboss.cache.marshall.UnmarshalledReferences

public class UnmarshalledReferences
extends Object

An efficient array-based list of referenced objects, using the reference id as a subscript for the array.

Author:
Manik Surtani (manik AT jboss DOT org)

Constructor Summary
UnmarshalledReferences()
           
 
Method Summary
 Object getReferencedObject(int ref)
          Retrieves an object referenced by an id
 void putReferencedObject(int ref, Object o)
          Adds a referenced object to the list of references
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmarshalledReferences

public UnmarshalledReferences()
Method Detail

getReferencedObject

public Object getReferencedObject(int ref)
Retrieves an object referenced by an id

Parameters:
ref - reference
Returns:
object

putReferencedObject

public void putReferencedObject(int ref,
                                Object o)
Adds a referenced object to the list of references

Parameters:
ref - reference id
o - object


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.