1: // Version 4.0 2: private static class TableEntry<S, T> 3: { 4: private S key; 5: private T value; 6: private States state; // Flags whether this entry is in the hash table 7: private enum States {CURRENT, REMOVED} // Possible values of state 8: 9: private TableEntry(S searchKey, T dataValue) 10: { 11: key = searchKey; 12: value = dataValue; 13: state = States.CURRENT; 14: } // end constructor 15: 16: /* < The methods getKey, getValue, setValue, isIn, isRemoved, setToIn, 17: and setToRemoved are here. > 18: . . . */ 19: 20: } // end TableEntry