class MappingList<S,E> extends AbstractList<E>
List
that adapts a given List
of elements to a List
of elements
of a different type using a given mapping Function
.Modifier and Type | Field and Description |
---|---|
private List<S> |
list |
private Function<S,E> |
mapper |
modCount
Constructor and Description |
---|
MappingList(List<S> list,
Function<S,E> mapper)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
E |
get(int index) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
Copyright © 2001–2016 mmm-Team. All rights reserved.