Package com.ibm.wala.util.collections
Class ParanoidHashSet<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
java.util.HashSet<T>
java.util.LinkedHashSet<T>
com.ibm.wala.util.collections.ParanoidHashSet<T>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,SequencedCollection<T>,SequencedSet<T>,Set<T>
a debugging aid. This implementation complains if you stick an object in here which appears to use System.identityHashCode(), or
if it detects more than BAD_HC collisions in the Set (possibly indicated a bad hash function)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.LinkedHashSet
addFirst, addLast, getFirst, getLast, newLinkedHashSet, removeFirst, removeLast, reversed, spliteratorMethods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, newHashSet, remove, size, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ParanoidHashSet
- Throws:
NullPointerException- if s is null
-
ParanoidHashSet
public ParanoidHashSet() -
ParanoidHashSet
public ParanoidHashSet(int size)
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<T>- Specified by:
addin interfaceSet<T>- Overrides:
addin classHashSet<T>- Throws:
UnimplementedError- if there's a bad hash code problem- See Also:
-