public class ConcurrentHashSet extends AbstractSet implements Set, Serializable
| Constructor and Description |
|---|
ConcurrentHashSet() |
ConcurrentHashSet(int initialCapacity) |
ConcurrentHashSet(int initialCapacity,
float loadFactor,
int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object e) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
addAll, containsAll, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, spliteratorparallelStream, removeIf, streampublic ConcurrentHashSet()
public ConcurrentHashSet(int initialCapacity)
public ConcurrentHashSet(int initialCapacity,
float loadFactor,
int concurrencyLevel)
public int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic Object[] toArray()
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic boolean add(Object e)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface SetretainAll in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic boolean equals(Object o)
equals in interface Collectionequals in interface Setequals in class AbstractSetpublic int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in class AbstractSetCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.