net.walend.collection
Interface AbstractHashMap.Entry

All Known Implementing Classes:
AbstractHashMap.SimpleEntry, NullValueHashMap.NullEntry, SoftHashMap.SoftEntry
Enclosing interface:
AbstractHashMap

protected static interface AbstractHashMap.Entry

Sublcass this abstract class and override newEntry to use specialized Entries.


Method Summary
 AbstractHashMap.Entry deepCopy()
           
 int getHash()
           
 java.lang.Object getKey()
           
 AbstractHashMap.Entry getNext()
           
 java.lang.Object getValue()
           
 void recordAccess(Map 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 AbstractHashMap.
 void setNext(AbstractHashMap.Entry nex)
           
 void setValue(java.lang.Object val)
           
 

Method Detail

getHash

public int getHash()

getKey

public java.lang.Object getKey()

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object val)

getNext

public AbstractHashMap.Entry getNext()

setNext

public void setNext(AbstractHashMap.Entry nex)

deepCopy

public AbstractHashMap.Entry deepCopy()

recordAccess

public void recordAccess(Map 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 AbstractHashMap.



Copyright (c) 2000, 2001, David Walend