E - the type of elements maintained by this setpublic class CacheKeySet<E> extends Object implements Set<E>
Set, but for its size() method| Constructor and Description |
|---|
CacheKeySet(Collection<E>... keySets)
Create a new Set for all tiers in the cache.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object o)
You can't add to this set, will throw!
|
boolean |
addAll(Collection c)
You can't add to this set, will throw!
|
void |
clear()
You can't remove from this set, will throw!
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o)
You can't remove from this set, will throw!
|
boolean |
removeAll(Collection<?> c)
You can't remove from this set, will throw!
|
boolean |
retainAll(Collection<?> c)
You can't remove from this set, will throw!
|
int |
size()
Sums the size of all sets wrapped by this one, so this will not account for duplicated keys.
|
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, spliteratorparallelStream, removeIf, streampublic CacheKeySet(Collection<E>... keySets)
keySets - an array of keySetspublic int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(Object o)
add in interface Collection<E>add in interface Set<E>UnsupportedOperationExceptionpublic boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>UnsupportedOperationExceptionpublic boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>public boolean addAll(Collection c)
addAll in interface Collection<E>addAll in interface Set<E>UnsupportedOperationExceptionpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>removeAll in interface Set<E>UnsupportedOperationExceptionpublic boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>UnsupportedOperationExceptionpublic void clear()
clear in interface Collection<E>clear in interface Set<E>UnsupportedOperationExceptionCopyright 2001-2021, Terracotta, Inc.