com.generationjava.collections
Class ProxyList
java.lang.Object
com.generationjava.collections.ProxyList
- All Implemented Interfaces:
- Collection, List
- Direct Known Subclasses:
- LimitedList
- public class ProxyList
- extends Object
- implements List
A List which wraps another List. Intended mainly to
be used as a superclass.
ProxyList
public ProxyList(List list)
size
public int size()
- Specified by:
size in interface List
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface List
contains
public boolean contains(Object obj)
- Specified by:
contains in interface List
iterator
public Iterator iterator()
- Specified by:
iterator in interface List
toArray
public Object[] toArray()
- Specified by:
toArray in interface List
toArray
public Object[] toArray(Object[] objs)
- Specified by:
toArray in interface List
add
public boolean add(Object obj)
- Specified by:
add in interface List
remove
public boolean remove(Object obj)
- Specified by:
remove in interface List
containsAll
public boolean containsAll(Collection coll)
- Specified by:
containsAll in interface List
addAll
public boolean addAll(Collection coll)
- Specified by:
addAll in interface List
addAll
public boolean addAll(int i,
Collection coll)
- Specified by:
addAll in interface List
removeAll
public boolean removeAll(Collection coll)
- Specified by:
removeAll in interface List
retainAll
public boolean retainAll(Collection coll)
- Specified by:
retainAll in interface List
clear
public void clear()
- Specified by:
clear in interface List
get
public Object get(int i)
- Specified by:
get in interface List
set
public Object set(int i,
Object obj)
- Specified by:
set in interface List
add
public void add(int i,
Object obj)
- Specified by:
add in interface List
remove
public Object remove(int i)
- Specified by:
remove in interface List
indexOf
public int indexOf(Object obj)
- Specified by:
indexOf in interface List
lastIndexOf
public int lastIndexOf(Object obj)
- Specified by:
lastIndexOf in interface List
listIterator
public ListIterator listIterator()
- Specified by:
listIterator in interface List
listIterator
public ListIterator listIterator(int i)
- Specified by:
listIterator in interface List
subList
public List subList(int i,
int j)
- Specified by:
subList in interface List
toString
public String toString()
Copyright © 2000-2005 OSJava. All Rights Reserved.