public class GridConcurrentHashSet<E> extends AbstractSet<E>
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<E,Object> |
map
Base map.
|
protected static Object |
VAL
Dummy value.
|
| Constructor and Description |
|---|
GridConcurrentHashSet()
Creates new set based on
ConcurrentHashMap. |
GridConcurrentHashSet(ConcurrentMap<E,?> map)
Creates new set based on the given map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
protected <T extends Map<E,Object>> |
map()
Gets wrapped map.
|
boolean |
remove(Object o) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
equals, hashCode, removeAlladdAll, containsAll, retainAllclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, retainAll, spliteratorparallelStream, removeIf, streamprotected static final Object VAL
protected ConcurrentMap<E,Object> map
public GridConcurrentHashSet()
ConcurrentHashMap.public GridConcurrentHashSet(ConcurrentMap<E,?> map)
map - Map to be used for set implementation.public boolean add(E e)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>isEmpty 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 Object[] toArray()
toArray in interface Collection<E>toArray in interface Set<E>toArray in class AbstractCollection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>toArray in interface Set<E>toArray 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>public String toString()
toString in class AbstractCollection<E>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018