gausssoft.collections
Class AltFilterList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--gausssoft.collections.AltFilterList
All Implemented Interfaces:
Collection, List, Serializable

public class AltFilterList
extends AbstractList
implements Serializable

The AltFilterList wraps around another List object providing the same functionality as AbstractList.

See the AltFilterCollection class for a description why the AltFilter classes exist.

This object is only serializable if the backing list is serializable. All methods which override the subclass implementations simply call the method of the same name in the backing collection.

Author:
Allan Crooks
See Also:
List, AbstractList, FilterList, AltFilterCollection, AltFilterSet, AltFilterIterator, Serialized Form

Field Summary
protected  List root
          The backing list.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AltFilterList(List root)
          Creates a new AltFilterList.
 
Method Summary
 void add(int index, Object element)
           
 Object get(int index)
           
 Object remove(int index)
           
 Object set(int index, Object element)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

root

protected List root
The backing list.
Constructor Detail

AltFilterList

public AltFilterList(List root)
Creates a new AltFilterList.
Parameters:
root - The backing list to use.
Method Detail

get

public Object get(int index)
Overrides:
get in class AbstractList

set

public Object set(int index,
                  Object element)
Overrides:
set in class AbstractList

add

public void add(int index,
                Object element)
Overrides:
add in class AbstractList

remove

public Object remove(int index)
Overrides:
remove in class AbstractList

size

public int size()
Overrides:
size in class AbstractCollection