net.datastructures - version 5.0

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 Object
implements Entry<K,V>

Nested class for an entry in a hash table.


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

Field Detail

key

protected K key

value

protected V value
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(Object o)
Overrides:
equals in class Object

toString

public String toString()
Entry visualization.

Overrides:
toString in class Object

net.datastructures - version 5.0