gausssoft.collections
Class  FilterCollection
java.lang.Object
  |
  +--gausssoft.collections.FilterCollection
- All Implemented Interfaces: 
- Collection, Serializable
- public class FilterCollection- extends Object- implements Collection, Serializable
The FilterCollection class contains another Collection, which it uses as it's basic source
 of data, possibly transforming the data along the way or providing additional functionality. 
 Each method in this implementation calls the method with the same signature in the backing
 collection. 
 This class can only be serialized if the backing collection is serializable.
- Author: 
- Allan Crooks
- See Also: 
- Collection, Serialized Form
 
 
 
 
root
protected Collection root
- Backing collection.
FilterCollection
public FilterCollection(Collection root)
- Creates a new FilterCollection.- 
- Parameters:
- root- The collection to use as the backing collection.
- Throws:
- NullPointerException- If root is- null.
 
size
public int size()
- 
- Specified by: 
- sizein interface- Collection
 
isEmpty
public boolean isEmpty()
- 
- Specified by: 
- isEmptyin interface- Collection
 
contains
public boolean contains(Object o)
- 
- Specified by: 
- containsin interface- Collection
 
iterator
public Iterator iterator()
- 
- Specified by: 
- iteratorin interface- Collection
 
toArray
public Object[] toArray()
- 
- Specified by: 
- toArrayin interface- Collection
 
toArray
public Object[] toArray(Object[] a)
- 
- Specified by: 
- toArrayin interface- Collection
 
add
public boolean add(Object o)
- 
- Specified by: 
- addin interface- Collection
 
remove
public boolean remove(Object o)
- 
- Specified by: 
- removein interface- Collection
 
containsAll
public boolean containsAll(Collection c)
- 
- Specified by: 
- containsAllin interface- Collection
 
addAll
public boolean addAll(Collection c)
- 
- Specified by: 
- addAllin interface- Collection
 
removeAll
public boolean removeAll(Collection c)
- 
- Specified by: 
- removeAllin interface- Collection
 
retainAll
public boolean retainAll(Collection c)
- 
- Specified by: 
- retainAllin interface- Collection
 
clear
public void clear()
- 
- Specified by: 
- clearin interface- Collection
 
equals
public boolean equals(Object o)
- 
- Specified by: 
- equalsin interface- Collection
- Overrides:
- equalsin class- Object
 
hashCode
public int hashCode()
- 
- Specified by: 
- hashCodein interface- Collection
- Overrides:
- hashCodein class- Object
 
toString
public String toString()
- 
- Overrides:
- toStringin class- Object