Class ListWrapper<T>
- java.lang.Object
-
- jadex.commons.collection.wrappers.CollectionWrapper<T>
-
- jadex.commons.collection.wrappers.ListWrapper<T>
-
- All Implemented Interfaces:
java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.List<T>
- Direct Known Subclasses:
ListWrapper
public abstract class ListWrapper<T> extends CollectionWrapper<T> implements java.util.List<T>
-
-
Field Summary
-
Fields inherited from class jadex.commons.collection.wrappers.CollectionWrapper
delegate
-
-
Constructor Summary
Constructors Constructor Description ListWrapper(java.util.List<T> delegate)
Create a new wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, T element)
boolean
addAll(int index, java.util.Collection<? extends T> c)
T
get(int index)
java.util.List<T>
getList()
int
indexOf(java.lang.Object o)
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<T>
listIterator()
java.util.ListIterator<T>
listIterator(int index)
T
remove(int index)
T
set(int index, T element)
java.util.List<T>
subList(int fromIndex, int toIndex)
-
Methods inherited from class jadex.commons.collection.wrappers.CollectionWrapper
add, addAll, clear, contains, containsAll, entryAdded, entryChanged, entryRemoved, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
ListWrapper
public ListWrapper(java.util.List<T> delegate)
Create a new wrapper.- Parameters:
delegate
- The delegate.
-
-
Method Detail
-
getList
public java.util.List<T> getList()
-
addAll
public boolean addAll(int index, java.util.Collection<? extends T> c)
- Specified by:
addAll
in interfacejava.util.List<T>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<T>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<T>
-
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<T>
-
-