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>
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 interface java.util.List |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
ListWrapper
public ListWrapper(List l)
- Creates a
ListWrapper
.
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