public final class ConcurrentSet<E>
extends java.util.AbstractSet<E>
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<E,java.lang.Boolean> |
map |
private static long |
serialVersionUID |
Constructor and Description |
---|
ConcurrentSet()
Creates a new instance which wraps the specified
map . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object o) |
int |
size() |
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private static final long serialVersionUID
private final java.util.concurrent.ConcurrentMap<E,java.lang.Boolean> map
public ConcurrentSet()
map
.public int size()
public boolean contains(java.lang.Object o)
public boolean add(E o)
public boolean remove(java.lang.Object o)
public void clear()