T - public class IdentityHashSet<T> extends AbstractSet<T>
| Constructor and Description |
|---|
IdentityHashSet() |
IdentityHashSet(Collection<? extends T> c) |
IdentityHashSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c)
Adds the all.
|
void |
clear()
Clear.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty()
Checks if is empty.
|
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c)
Removes the all.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<A> A[] |
toArray(A[] a) |
equals, hashCodetoStringspliteratorparallelStream, removeIf, streampublic IdentityHashSet()
public IdentityHashSet(int initialCapacity)
public IdentityHashSet(Collection<? extends T> c)
public boolean add(T e)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>e - public boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>o - public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface Set<T>containsAll in class AbstractCollection<T>c - public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractCollection<T>c - public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in interface Set<T>removeAll in class AbstractSet<T>c - public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in interface Set<T>retainAll in class AbstractCollection<T>c - public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>o - public Object[] toArray()
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>public <A> A[] toArray(A[] a)
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>A - a - public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface Set<T>isEmpty in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>Copyright © 2021. All rights reserved.