org.castor.core.util
Class IdentityMap.Entry

java.lang.Object
  extended by org.castor.core.util.IdentityMap.Entry
All Implemented Interfaces:
Map.Entry
Enclosing class:
IdentityMap

public final class IdentityMap.Entry
extends Object
implements Map.Entry

An entry of the IdentityMap.


Constructor Summary
IdentityMap.Entry(Object key, int hash, Object value)
          Construct an entry.
 
Method Summary
 int getHash()
          Get identity hashcode of key.
 Object getKey()
          Get key of entry.
 IdentityMap.Entry getNext()
          Get reference to next entry.
 Object getValue()
          Get value of entry.
 void setNext(IdentityMap.Entry next)
          Set reference to next entry.
 Object setValue(Object value)
          Set value of entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

IdentityMap.Entry

public IdentityMap.Entry(Object key,
                         int hash,
                         Object value)
Construct an entry.

Parameters:
key - Key of entry.
hash - Identity hashcode of key.
value - Value of entry.
Method Detail

getKey

public Object getKey()
Get key of entry.

Specified by:
getKey in interface Map.Entry
Returns:
Key of entry.

getHash

public int getHash()
Get identity hashcode of key.

Returns:
Identity hashcode of key.

setValue

public Object setValue(Object value)
Set value of entry.

Specified by:
setValue in interface Map.Entry
Parameters:
value - New value of entry.
Returns:
Previous entry in the map.

getValue

public Object getValue()
Get value of entry.

Specified by:
getValue in interface Map.Entry
Returns:
Value of entry.

setNext

public void setNext(IdentityMap.Entry next)
Set reference to next entry.

Parameters:
next - New reference to next entry.

getNext

public IdentityMap.Entry getNext()
Get reference to next entry.

Returns:
Reference to next entry.


Copyright © 2012. All Rights Reserved.