Package nl.vpro.util
Class TransformingList<T,S>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<T>
-
- nl.vpro.util.TransformingList<T,S>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,TransformingCollection<T,S,List<T>,List<S>>
public class TransformingList<T,S> extends AbstractList<T> implements TransformingCollection<T,S,List<T>,List<S>>
- Since:
- 4.3
- Author:
- Michiel Meeuwissen
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i, T toAdd)
T
get(int index)
List<T>
newFiltered()
List<S>
newWrap()
S
produce(T entry)
T
remove(int i)
boolean
remove(Object o)
T
set(int i, T toSet)
int
size()
T
transform(int i, S entry)
T
transform(S entry)
List<S>
unwrap()
-
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Methods inherited from interface nl.vpro.util.TransformingCollection
add, filter, iterator, produce
-
-
-
-
Method Detail
-
get
public T get(int index)
-
size
public int size()
-
remove
public boolean remove(Object o)
-
add
public void add(int i, T toAdd)
-
remove
public T remove(int i)
-
newFiltered
public List<T> newFiltered()
- Specified by:
newFiltered
in interfaceTransformingCollection<T,S,List<T>,List<S>>
-
-