/** * CSE 373, Spring 2011, Jessica Miller * The StringHashEntry represents a single entry in the HashSet. */ public class HashMapEntry { public K key; // key stored at this node public V value; // value stored at this node public HashMapEntry next; // reference to the next entry // Constructs a single hash entry. public HashMapEntry(K key, V value) { this(key, value, null); } // Constructs a single hash entry, with reference to the next hash entry. public HashMapEntry(K key, V value, HashMapEntry next) { this.key = key; this.value = value; this.next = next; } }