public class GridSetWrapper<E> extends GridSerializableSet<E>
| Modifier and Type | Field and Description |
|---|---|
protected Map<E,Object> |
map
Base map.
|
protected static Object |
VAL
Dummy value.
|
| Constructor and Description |
|---|
GridSetWrapper(Map<E,?> map)
Creates new set based on the given map.
|
GridSetWrapper(Map<E,?> map,
Collection<? extends E> initVals)
Creates new set based on the given map and initializes
it with given values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
clear() |
boolean |
contains(Object o) |
protected Object |
defaultValue()
Provides default map value to child classes.
|
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
@GridToStringExclude protected Map<E,Object> map
public GridSetWrapper(Map<E,?> map)
map - Map to be used for set implementation.public GridSetWrapper(Map<E,?> map, Collection<? extends E> initVals)
map - Map to be used for set implementation.initVals - Initial values.protected final Object defaultValue()
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 Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020