com.generationjava.collections
Class ProxyList

java.lang.Object
  extended bycom.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.


Constructor Summary
ProxyList(List list)
           
 
Method Summary
 void add(int i, Object obj)
           
 boolean add(Object obj)
           
 boolean addAll(Collection coll)
           
 boolean addAll(int i, Collection coll)
           
 void clear()
           
 boolean contains(Object obj)
           
 boolean containsAll(Collection coll)
           
 Object get(int i)
           
 int indexOf(Object obj)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 int lastIndexOf(Object obj)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int i)
           
 Object remove(int i)
           
 boolean remove(Object obj)
           
 boolean removeAll(Collection coll)
           
 boolean retainAll(Collection coll)
           
 Object set(int i, Object obj)
           
 int size()
           
 List subList(int i, int j)
           
 Object[] toArray()
           
 Object[] toArray(Object[] objs)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

ProxyList

public ProxyList(List list)
Method Detail

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.