ConcurrentHashMap#newKeySet()
instead@Deprecated public final class ConcurrentSet<E> extends AbstractSet<E> implements Serializable
Constructor and Description |
---|
ConcurrentSet()
Deprecated.
Creates a new instance which wraps the specified
map . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
contains(Object o)
Deprecated.
|
Iterator<E> |
iterator()
Deprecated.
|
boolean |
remove(Object o)
Deprecated.
|
int |
size()
Deprecated.
|
equals, hashCode, removeAll
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public ConcurrentSet()
map
.public int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
contains
in interface Set<E>
contains
in class AbstractCollection<E>
public boolean add(E o)
add
in interface Collection<E>
add
in interface Set<E>
add
in class AbstractCollection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface Set<E>
remove
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in interface Set<E>
clear
in class AbstractCollection<E>
Copyright © 2008–2019 The Netty Project. All rights reserved.