Class TransformList<E,W>
java.lang.Object
com.aoapps.collections.transformers.TransformIterable<E,W>
com.aoapps.collections.transformers.TransformCollection<E,W>
com.aoapps.collections.transformers.TransformList<E,W>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>
Wraps a
List, with optional type conversion.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoapps.collections.transformers.TransformIterable
transformer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformList(List<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanaddAll(int index, Collection<? extends E> c) booleanget(int index) intintlistIterator(int index) static <E> TransformList<E, E> static <E,W> TransformList <E, W> of(List<W> list, Transformer<E, W> transformer) Wraps a list.remove(int index) voidreplaceAll(UnaryOperator<E> operator) voidsort(Comparator<? super E> c) subList(int fromIndex, int toIndex) Methods inherited from class com.aoapps.collections.transformers.TransformCollection
add, addAll, clear, contains, containsAll, hashCode, isEmpty, of, of, remove, removeAll, removeIf, retainAll, size, toArray, toArray, toArrayMethods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, ofMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
TransformList
-
-
Method Details
-
of
Wraps a list.- If the given list implements
RandomAccess, then the returned list will also implementRandomAccess.
- If the given list implements
-
of
- See Also:
-
getWrapped
- Overrides:
getWrappedin classTransformCollection<E,W>
-
addAll
-
replaceAll
- Specified by:
replaceAllin interfaceList<E>
-
sort
-
equals
- Specified by:
equalsin interfaceCollection<E>- Specified by:
equalsin interfaceList<E>- Overrides:
equalsin classTransformCollection<E,W>
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>
-
subList
-
