|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fjank.jcache.collection.SetProxy
public class SetProxy
A proxy for a key set returned from the Map implementation.
Constructor Summary | |
---|---|
SetProxy(Set set,
CacheGroup group)
Creates a new keySetProxy. |
Method Summary | |
---|---|
boolean |
add(Object o)
the implementation of this operation will always throw UnsupportedOperatioinException |
boolean |
addAll(Collection c)
the implementation of this operation will always throw UnsupportedOperationException |
void |
clear()
Clears this set, which will clear the cache of all objects. |
boolean |
contains(Object o)
Returns a boolean indicating wether the object exists in the cache or not. |
boolean |
containsAll(Collection c)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals, hashCode |
Constructor Detail |
---|
public SetProxy(Set set, CacheGroup group)
set
- the set to be a proxy for.group
- Method Detail |
---|
public boolean add(Object o)
add
in interface Collection
add
in interface Set
o
- the object to add.
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface Set
c
- the collection to add objects from.
public void clear()
clear
in interface Collection
clear
in interface Set
javax.util.jcache.CacheAccess#invalidate()
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
o
- the object to check the existence for.
true
if the object is present in the cache, false
otherwise.public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface Set
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
c
-
public int size()
size
in interface Collection
size
in interface Set
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface Set
a
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |