public class GridCacheSetImpl<T> extends AbstractCollection<T> implements GridCacheSet<T>
| Constructor and Description |
|---|
GridCacheSetImpl(GridCacheContext ctx,
String name,
GridCacheSetHeader hdr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
collocated()
Returns
true if this set can be kept on the one node only. |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
String |
name()
Gets set name.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removed()
Gets status of set.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
String |
toString() |
toArray, toArraypublic GridCacheSetImpl(GridCacheContext ctx, String name, GridCacheSetHeader hdr)
ctx - Cache context.name - Set name.hdr - Set header.public boolean collocated()
true if this set can be kept on the one node only.
Returns false if this set can be kept on the many nodes.collocated in interface GridCacheSet<T>True if this set is in collocated mode false otherwise.public String name()
name in interface GridCacheSet<T>public boolean removed()
removed in interface GridCacheSet<T>True if set was removed from cache false otherwise.public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface Set<T>isEmpty in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public boolean add(T o)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<T>containsAll in interface Set<T>containsAll in class AbstractCollection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractCollection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in interface Set<T>removeAll in class AbstractCollection<T>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<T>retainAll in interface Set<T>retainAll in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>public String toString()
toString in class AbstractCollection<T>Copyright © 2014. All rights reserved.