ch.javasoft.util.intcoll
Class IntHashMap.IntEntry<VV>

java.lang.Object
  extended by 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>


Field Summary
protected  int key
           
protected  IntHashMap.IntEntry<VV> next
           
protected  VV value
           
 
Constructor Summary
protected IntHashMap.IntEntry(int k, VV v, IntHashMap.IntEntry<VV> n)
          Create new entry.
 
Method Summary
 boolean equals(Object o)
           
 int getIntKey()
           
 Integer getKey()
           
 VV getValue()
           
 int hashCode()
           
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.
protected  void recordRemoval(IntHashMap<VV> m)
          This method is invoked whenever the entry is removed from the table.
 VV setValue(VV newValue)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected final int key

value

protected VV value

next

protected IntHashMap.IntEntry<VV> next
Constructor Detail

IntHashMap.IntEntry

protected IntHashMap.IntEntry(int k,
                              VV v,
                              IntHashMap.IntEntry<VV> n)
Create new entry.

Method Detail

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.