public class IdentityHashSet<T>
extends java.util.AbstractSet<T>
Constructor and Description |
---|
IdentityHashSet()
Default constructor.
|
IdentityHashSet(java.util.Collection<? extends T> collection)
Copy constructor.
|
IdentityHashSet(Countable<? extends T> countable)
Copy constructor.
|
IdentityHashSet(int initialCapacity)
Constructor.
|
IdentityHashSet(java.lang.Iterable<? extends T> iterable)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
void |
forEach(java.util.function.Consumer<? super T> action) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
java.util.stream.Stream<T> |
parallelStream() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
int |
size() |
java.util.Spliterator<T> |
spliterator() |
java.util.stream.Stream<T> |
stream() |
java.lang.Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
public IdentityHashSet()
public IdentityHashSet(int initialCapacity)
initialCapacity
- initial capacity of this setpublic IdentityHashSet(@NotNull java.lang.Iterable<? extends T> iterable)
iterable
to this set.iterable
- iterable providing the initial valuespublic IdentityHashSet(@NotNull java.util.Collection<? extends T> collection)
collection
to this set.collection
- collection providing the initial valuespublic int size()
public boolean isEmpty()
public boolean removeAll(@NotNull java.util.Collection<?> c)
public boolean contains(java.lang.Object o)
@NotNull public java.lang.Object[] toArray()
public boolean add(T t)
public boolean remove(java.lang.Object o)
public boolean containsAll(@NotNull java.util.Collection<?> c)
public void clear()
public void forEach(java.util.function.Consumer<? super T> action)