E
- The element typepublic class IdentityHashSet<E> extends AbstractSet<E>
IdentityHashMap
and the Set
.Constructor and Description |
---|
IdentityHashSet() |
IdentityHashSet(Collection<? extends E> c) |
IdentityHashSet(int expectedMaxSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
clear() |
Object |
clone() |
boolean |
contains(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public IdentityHashSet()
public IdentityHashSet(Collection<? extends E> c)
public IdentityHashSet(int expectedMaxSize)
public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface Set<E>
isEmpty
in class AbstractCollection<E>
public boolean contains(@Nullable Object o)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractCollection<E>
public boolean add(@Nullable E e)
add
in interface Collection<E>
add
in interface Set<E>
add
in class AbstractCollection<E>
public boolean remove(@Nullable Object o)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class AbstractCollection<E>
Copyright © 2018 Arno Unkrig. All rights reserved.