public class IdentityHashSet<E> extends Object implements Set<E>
Constructor and Description |
---|
IdentityHashSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
boolean |
addAll(Collection<? extends E> elements) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection<?> elements) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> elements) |
boolean |
retainAll(Collection<?> elements) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] dummy) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public boolean add(E element)
public boolean addAll(Collection<? extends E> elements)
public void clear()
public boolean contains(Object element)
public boolean containsAll(Collection<?> elements)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean isEmpty()
public boolean remove(Object element)
public boolean removeAll(Collection<?> elements)
public boolean retainAll(Collection<?> elements)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] dummy)
Copyright © 2007-2017 The Apache Software Foundation