public class ParanoidHashSet<T> extends LinkedHashSet<T>
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ParanoidHashSet() |
ParanoidHashSet(Collection<T> s) |
ParanoidHashSet(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T arg0) |
spliterator
clear, clone, contains, isEmpty, iterator, remove, size
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
public static final long serialVersionUID
public ParanoidHashSet(Collection<T> s) throws NullPointerException
s
- NullPointerException
- if s is nullpublic ParanoidHashSet()
public ParanoidHashSet(int size)
public boolean add(T arg0)
add
in interface Collection<T>
add
in interface Set<T>
add
in class HashSet<T>
UnimplementedError
- if there's a bad hash code problemCollection.add(java.lang.Object)