net.datastructures
Class HashTableMap.HashEntry<K,V>

java.lang.Object
  extended by net.datastructures.HashTableMap.HashEntry<K,V>
All Implemented Interfaces:
Entry<K,V>
Enclosing class:
HashTableMap<K,V>

public static class HashTableMap.HashEntry<K,V>
extends java.lang.Object
implements Entry<K,V>

Nested class for an entry in a hash table.


Constructor Summary
HashTableMap.HashEntry(K k, V v)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 K getKey()
          Returns the key stored in this entry.
 V getValue()
          Returns the value stored in this entry.
 V setValue(V val)
           
 java.lang.String toString()
          Entry visualization.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashTableMap.HashEntry

public HashTableMap.HashEntry(K k,
                              V v)
Method Detail

getValue

public V getValue()
Description copied from interface: Entry
Returns the value stored in this entry.

Specified by:
getValue in interface Entry<K,V>

getKey

public K getKey()
Description copied from interface: Entry
Returns the key stored in this entry.

Specified by:
getKey in interface Entry<K,V>

setValue

public V setValue(V val)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Entry visualization.

Overrides:
toString in class java.lang.Object