ch.javasoft.util.intcoll
Class IntHashMap.IntEntry<VV>
java.lang.Object
ch.javasoft.util.intcoll.IntHashMap.IntEntry<VV>
- All Implemented Interfaces:
- IntMap.IntEntry<VV>, Map.Entry<Integer,VV>
- Enclosing class:
- IntHashMap<V>
public static class IntHashMap.IntEntry<VV>
- extends Object
- implements IntMap.IntEntry<VV>
key
protected final int key
value
protected VV value
next
protected IntHashMap.IntEntry<VV> next
IntHashMap.IntEntry
protected IntHashMap.IntEntry(int k,
VV v,
IntHashMap.IntEntry<VV> n)
- Create new entry.
getKey
public Integer getKey()
- Specified by:
getKey in interface Map.Entry<Integer,VV>
getIntKey
public int getIntKey()
- Specified by:
getIntKey in interface IntMap.IntEntry<VV>
getValue
public VV getValue()
- Specified by:
getValue in interface Map.Entry<Integer,VV>
setValue
public VV setValue(VV newValue)
- Specified by:
setValue in interface Map.Entry<Integer,VV>
equals
public boolean equals(Object o)
- Specified by:
equals in interface Map.Entry<Integer,VV>- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map.Entry<Integer,VV>- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
recordAccess
protected void recordAccess(IntHashMap<VV> m)
- This method is invoked whenever the value in an entry is
overwritten by an invocation of put(k,v) for a key k that's already
in the IntHashMap.
recordRemoval
protected void recordRemoval(IntHashMap<VV> m)
- This method is invoked whenever the entry is
removed from the table.