org.fjank.jcache.collection
Class CollectionProxy
java.lang.Object
org.fjank.jcache.collection.CollectionProxy
- All Implemented Interfaces:
- Iterable, Collection
public class CollectionProxy
- extends Object
- implements Collection
Acts as a proxy to the collectiton returned from the Map.
- Author:
- Frank Karlstrøm
CollectionProxy
public CollectionProxy(Collection collection,
CacheGroup group)
- Parameters:
collection - group -
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection- Overrides:
hashCode in class Object
add
public boolean add(Object o)
- Specified by:
add in interface Collection
- Parameters:
o -
- Returns:
toString
public String toString()
- Overrides:
toString in class Object
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection
- Returns:
addAll
public boolean addAll(Collection c)
- Specified by:
addAll in interface Collection
- Parameters:
c -
- Returns:
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll in interface Collection
- Parameters:
c -
- Returns:
contains
public boolean contains(Object o)
- Specified by:
contains in interface Collection
- Parameters:
o -
- Returns:
clear
public void clear()
- Specified by:
clear in interface Collection
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll in interface Collection
- Parameters:
c -
- Returns:
size
public int size()
- Specified by:
size in interface Collection
- Returns:
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll in interface Collection
- Parameters:
c -
- Returns:
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection
- Returns:
equals
public boolean equals(Object obj)
- Specified by:
equals in interface Collection- Overrides:
equals in class Object
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection
- Parameters:
o -
- Returns:
iterator
public Iterator iterator()
- Specified by:
iterator in interface Iterable- Specified by:
iterator in interface Collection
- Returns:
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray in interface Collection
- Parameters:
a -
- Returns:
Copyright © 2002-2009 Hosted by SourceForge. All Rights Reserved.