
E - the element typepublic class IdentityHashSet<E> extends HashSet<E>
| Constructor and Description |
|---|
IdentityHashSet() |
IdentityHashSet(Collection<? extends E> c) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
itemEquals(Object a,
Object b)
Returns whether two items are equal for the purposes of this set.
|
protected int |
itemHashCode(Object o)
Return the hashCode for an item.
|
add, addAll, clear, contains, doReadObject, doWriteObject, iterator, remove, size, toArray, toArrayequals, hashCode, removeAllcontainsAll, isEmpty, retainAll, toStringcontainsAll, isEmpty, retainAllpublic IdentityHashSet()
public IdentityHashSet(Collection<? extends E> c)
protected boolean itemEquals(Object a, Object b)
HashSetitemEquals in class HashSet<E>protected int itemHashCode(Object o)
HashSetitemHashCode in class HashSet<E>Copyright © 2018. All rights reserved.