T - the element typeSerializable, Iterable<T>, Collection<T>, Set<T>public class ConcurrentHashSet<T> extends AbstractSet<T> implements Serializable
| Constructor | Description |
|---|---|
ConcurrentHashSet() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(T e) |
|
void |
clear() |
|
boolean |
contains(Object o) |
|
boolean |
containsAll(Collection<?> c) |
|
boolean |
equals(Object o) |
|
void |
forEach(Consumer<? super T> action) |
|
int |
hashCode() |
|
boolean |
isEmpty() |
|
Iterator<T> |
iterator() |
|
Stream<T> |
parallelStream() |
|
boolean |
remove(Object o) |
|
boolean |
removeAll(Collection<?> c) |
|
boolean |
removeIf(Predicate<? super T> filter) |
|
boolean |
retainAll(Collection<?> c) |
|
int |
size() |
|
Spliterator<T> |
spliterator() |
|
Stream<T> |
stream() |
|
Object[] |
toArray() |
|
<R> R[] |
toArray(R[] a) |
|
String |
toString() |
addAllpublic int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface Set<T>isEmpty in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface Set<T>containsAll in class AbstractCollection<T>public Stream<T> stream()
stream in interface Collection<T>public Stream<T> parallelStream()
parallelStream in interface Collection<T>public Spliterator<T> spliterator()
spliterator in interface Collection<T>spliterator in interface Iterable<T>spliterator in interface Set<T>public Object[] toArray()
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>public <R> R[] toArray(R[] a)
toArray in interface Collection<T>toArray in interface Set<T>toArray in class AbstractCollection<T>public boolean equals(Object o)
equals in interface Collection<T>equals in interface Set<T>equals in class AbstractSet<T>public int hashCode()
hashCode in interface Collection<T>hashCode in interface Set<T>hashCode in class AbstractSet<T>public boolean add(T e)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean removeIf(Predicate<? super T> filter)
removeIf in interface Collection<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in interface Set<T>removeAll in class AbstractSet<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in interface Set<T>retainAll in class AbstractCollection<T>public String toString()
toString in class AbstractCollection<T>Copyright © 2018 Electronic Arts Inc. All rights reserved.