org.castor.util

Class IdentityMap.Entry

Enclosing Class:
IdentityMap
Implemented Interfaces:
Map.Entry

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

An entry of the IdentityMap.

Constructor Summary

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.

Constructor Details

Entry

public 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 Details

getHash

public int getHash()
Get identity hashcode of key.
Returns:
Identity hashcode of key.

getKey

public Object getKey()
Get key of entry.
Returns:
Key of entry.

getNext

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

getValue

public Object getValue()
Get value of entry.
Returns:
Value of entry.

setNext

public void setNext(IdentityMap.Entry next)
Set reference to next entry.
Parameters:
next - New reference to next entry.

setValue

public Object setValue(Object value)
Set value of entry.
Parameters:
value - New value of entry.
Returns:
Previous entry in the map.

Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com