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
ModifierConstructorDescriptionprotected
TransformList
(List<W> wrapped, Transformer<E, W> transformer) -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
addAll
(int index, Collection<? extends E> c) boolean
get
(int index) int
int
listIterator
(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) void
replaceAll
(UnaryOperator<E> operator) void
sort
(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
Methods inherited from class com.aoapps.collections.transformers.TransformIterable
forEach, iterator, of, of
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getWrapped
in classTransformCollection<E,
W>
-
addAll
-
replaceAll
- Specified by:
replaceAll
in interfaceList<E>
-
sort
-
equals
- Specified by:
equals
in interfaceCollection<E>
- Specified by:
equals
in interfaceList<E>
- Overrides:
equals
in classTransformCollection<E,
W>
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-