org.deduced.utilities
Class IdentityReferenceMap.IdentityReferenceEntry

java.lang.Object
  extended by org.deduced.utilities.IdentityReferenceMap.IdentityReferenceEntry
All Implemented Interfaces:
java.util.Map.Entry, org.apache.commons.collections.KeyValue
Enclosing class:
IdentityReferenceMap

protected static class IdentityReferenceMap.IdentityReferenceEntry
extends java.lang.Object

IdentityReferenceEntry is used to create hash entries in the map. It has a pointer to the parent map so that it may know how to perform hashCode and equal operation on the key and values based on the map configuration.


Constructor Summary
protected IdentityReferenceMap.IdentityReferenceEntry(IdentityReferenceMap setParent, org.apache.commons.collections.map.AbstractHashedMap.HashEntry setNext, int setHashCode, java.lang.Object setKey, java.lang.Object setValue)
          IdentityReferenceEntry constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          (non-Javadoc)
 int hashCode()
          (non-Javadoc)
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityReferenceMap.IdentityReferenceEntry

protected IdentityReferenceMap.IdentityReferenceEntry(IdentityReferenceMap setParent,
                                                      org.apache.commons.collections.map.AbstractHashedMap.HashEntry setNext,
                                                      int setHashCode,
                                                      java.lang.Object setKey,
                                                      java.lang.Object setValue)
IdentityReferenceEntry constructor

Parameters:
setParent - the parent map
setNext - the next entry in the hash bucket
setHashCode - the hash code of the key
setKey - the key
setValue - the value
Method Detail

equals

public boolean equals(java.lang.Object obj)
(non-Javadoc)

Specified by:
equals in interface java.util.Map.Entry
See Also:
AbstractReferenceMap.ReferenceEntry.equals(java.lang.Object)

hashCode

public int hashCode()
(non-Javadoc)

Specified by:
hashCode in interface java.util.Map.Entry
See Also:
AbstractReferenceMap.ReferenceEntry.hashCode()