E
- the type of elements maintained by this setpublic class CacheKeySet<E>
extends java.lang.Object
implements java.util.Set<E>
Set
, but for its size()
methodModifier and Type | Class and Description |
---|---|
private class |
CacheKeySet.KeySetIterator
An iterator that will iterate over all keySets, avoiding duplicate entries
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Iterator |
EMPTY_ITERATOR |
private java.util.Collection<E>[] |
keySets |
Constructor and Description |
---|
CacheKeySet(java.util.Collection<E>... keySets)
Create a new Set for all tiers in the cache.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object o)
You can't add to this set, will throw!
|
boolean |
addAll(java.util.Collection c)
You can't add to this set, will throw!
|
void |
clear()
You can't remove from this set, will throw!
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
remove(java.lang.Object o)
You can't remove from this set, will throw!
|
boolean |
removeAll(java.util.Collection<?> c)
You can't remove from this set, will throw!
|
boolean |
retainAll(java.util.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.
|
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
private static final java.util.Iterator EMPTY_ITERATOR
private final java.util.Collection<E>[] keySets
public CacheKeySet(java.util.Collection<E>... keySets)
keySets
- an array of keySetspublic int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(java.lang.Object o)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection c)
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)