public class CompactIdentityHashSet<E> extends CompactHashSet<E>
deletedObject, elements, freecells, INITIAL_SIZE, LOAD_FACTOR, modCount, nullObject, objects| Constructor and Description |
|---|
CompactIdentityHashSet() |
CompactIdentityHashSet(Collection<E> coll) |
CompactIdentityHashSet(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
Adds the specified element to this set if it is not already
present.
|
boolean |
contains(Object o)
Returns true if this set contains the specified element.
|
protected void |
rehash(int newCapacity)
INTERNAL: Rehashes the hashset to a bigger size.
|
boolean |
remove(Object o)
Removes the specified element from the set.
|
clear, dump, isEmpty, iterator, rehash, size, toArray, toArrayequals, hashCode, removeAlladdAll, containsAll, retainAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAll, spliteratorparallelStream, removeIf, streampublic CompactIdentityHashSet()
public CompactIdentityHashSet(int size)
public CompactIdentityHashSet(Collection<E> coll)
public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>contains in class CompactHashSet<E>o - element whose presence in this set is to be tested.public boolean add(Object o)
add in interface Collection<E>add in interface Set<E>add in class CompactHashSet<E>o - element to be added to this set.public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>remove in class CompactHashSet<E>protected void rehash(int newCapacity)
rehash in class CompactHashSet<E>