T
- a typepublic class IdentityHashSet<T> extends Object implements Set<T>
Constructor and Description |
---|
IdentityHashSet()
Construct an empty
IdentityHashSet . |
IdentityHashSet(Collection<T> col)
Construct an
IdentityHashSet with a collection of items. |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public IdentityHashSet()
IdentityHashSet
.public IdentityHashSet(Collection<T> col)
IdentityHashSet
with a collection of items.col
- a collection of itemspublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(T e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean addAll(Collection<? extends T> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.