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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll
public ConcurrentHashSet()
public ConcurrentHashSet(int initialCapacity)
public ConcurrentHashSet(int initialCapacity, float loadFactor, int concurrencyLevel)
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
isEmpty
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
toArray
in class AbstractCollection
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface Set
toArray
in class AbstractCollection
public boolean add(Object e)
add
in interface Collection
add
in interface Set
add
in class AbstractCollection
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
remove
in class AbstractCollection
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface Set
removeAll
in class AbstractSet
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
retainAll
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in interface Set
clear
in class AbstractCollection
public boolean equals(Object o)
equals
in interface Collection
equals
in interface Set
equals
in class AbstractSet
public int hashCode()
hashCode
in interface Collection
hashCode
in interface Set
hashCode
in class AbstractSet
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.