net.datastructures
Class HashTableMap.HashEntry<K,V>
java.lang.Object
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.
key
protected K key
value
protected V value
HashTableMap.HashEntry
public HashTableMap.HashEntry(K k,
V v)
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