harpoon.Util.Collections
Class ListWrapper

java.lang.Object
  |
  +--harpoon.Util.Collections.CollectionWrapper
        |
        +--harpoon.Util.Collections.ListWrapper
All Implemented Interfaces:
Collection, List

public class ListWrapper
extends CollectionWrapper
implements List

ListWrapper

Version:
$Id: ListWrapper.java,v 1.2 2002/02/25 21:09:05 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Field Summary
 
Fields inherited from class harpoon.Util.Collections.CollectionWrapper
b
 
Constructor Summary
ListWrapper(List l)
          Creates a ListWrapper.
 
Method Summary
 void add(int i, Object o)
           
 boolean addAll(int i, Collection c)
           
 Object get(int i)
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int i)
           
 Object remove(int i)
           
 Object set(int i, Object o)
           
 List subList(int i, int j)
           
 
Methods inherited from class harpoon.Util.Collections.CollectionWrapper
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, 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
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

ListWrapper

public ListWrapper(List l)
Creates a ListWrapper.

Method Detail

subList

public List subList(int i,
                    int j)
Specified by:
subList in interface List

get

public Object get(int i)
Specified by:
get in interface List

set

public Object set(int i,
                  Object o)
Specified by:
set in interface List

remove

public Object remove(int i)
Specified by:
remove in interface List

listIterator

public ListIterator listIterator(int i)
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

addAll

public boolean addAll(int i,
                      Collection c)
Specified by:
addAll in interface List

add

public void add(int i,
                Object o)
Specified by:
add in interface List