/** * CSE 373, Spring 2011, Jessica Miller * The StringHashEntry represents a single entry in our StringHashSet. This * class is needed because we are using separate chaining as our collision * resolution strategy. */ public class StringHashEntry { public String data; // data stored at this node public StringHashEntry next; // reference to the next entry // Constructs a single hash entry. public StringHashEntry(String data) { this(data, null); } // Constructs a single hash entry, with reference to the next hash entry. public StringHashEntry(String data, StringHashEntry next) { this.data = data; this.next = next; } }