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. |
Methods inherited from class java.util.AbstractList |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
root
protected List root
- The backing list.
AltFilterList
public AltFilterList(List root)
- Creates a new AltFilterList.
- Parameters:
root
- The backing list to use.
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