public class HashSetEntry { public T data; // data stored at this node public HashSetEntry next; // reference to the next entry // Constructs a single hash entry. public HashSetEntry(T data) { this(data, null); } // Constructs a single hash entry, with reference to the next hash entry. public HashSetEntry(T data, HashSetEntry next) { this.data = data; this.next = next; } }