Class AbstractHashedMap.HashEntry<K,V>
- java.lang.Object
-
- org.apache.openjpa.lib.util.collections.AbstractHashedMap.HashEntry<K,V>
-
- All Implemented Interfaces:
java.util.Map.Entry<K,V>
,KeyValue<K,V>
- Direct Known Subclasses:
AbstractLinkedMap.LinkEntry
,AbstractReferenceMap.ReferenceEntry
- Enclosing class:
- AbstractHashedMap<K,V>
protected static class AbstractHashedMap.HashEntry<K,V> extends java.lang.Object implements java.util.Map.Entry<K,V>, KeyValue<K,V>
HashEntry used to store the data.If you subclass
AbstractHashedMap
but notHashEntry
then you will not be able to access the protected fields. TheentryXxx()
methods onAbstractHashedMap
exist to provide the necessary access.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HashEntry(AbstractHashedMap.HashEntry<K,V> next, int hashCode, java.lang.Object key, V value)
-
-
-
Field Detail
-
next
protected AbstractHashedMap.HashEntry<K,V> next
The next entry in the hash chain
-
hashCode
protected int hashCode
The hash code of the key
-
key
protected java.lang.Object key
The key
-
value
protected java.lang.Object value
The value
-
-
Constructor Detail
-
HashEntry
protected HashEntry(AbstractHashedMap.HashEntry<K,V> next, int hashCode, java.lang.Object key, V value)
-
-
Method Detail
-
getValue
public V getValue()
Description copied from interface:KeyValue
Gets the value from the pair.
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-