DataStructures
Class ProbingHashTable.Entry

java.lang.Object
  |
  +--DataStructures.ProbingHashTable.Entry
All Implemented Interfaces:
LookupTable.Entry
Enclosing class:
ProbingHashTable

protected static class ProbingHashTable.Entry
extends java.lang.Object
implements LookupTable.Entry

A class of objects returned by iteration over entries. It represents a table entry as a (key, value) pair.


Method Summary
 java.lang.Object key()
          Returns the key of this entry.
 java.lang.String toString()
           
 java.lang.Object value()
          Returns the value of this entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

key

public java.lang.Object key()
Description copied from interface: LookupTable.Entry
Returns the key of this entry.
Specified by:
key in interface LookupTable.Entry
Following copied from interface: DataStructures.LookupTable.Entry
Returns:
the key of this entry.

value

public java.lang.Object value()
Description copied from interface: LookupTable.Entry
Returns the value of this entry.
Specified by:
value in interface LookupTable.Entry
Following copied from interface: DataStructures.LookupTable.Entry
Returns:
the value of this entry.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object