Package org.assertj.core.presentation
Class TransformingList<FROM,TO>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<TO>
-
- org.assertj.core.presentation.TransformingList<FROM,TO>
-
- Type Parameters:
FROM
- the type to convert fromTO
- the type to convert to
- All Implemented Interfaces:
java.lang.Iterable<TO>
,java.util.Collection<TO>
,java.util.List<TO>
final class TransformingList<FROM,TO> extends java.util.AbstractList<TO>
Converts elements of one list to a different type on demand.
-
-
Constructor Summary
Constructors Constructor Description TransformingList(java.util.List<? extends FROM> source, java.util.function.Function<? super FROM,? extends TO> transform)
Creates a newTransformingList
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TO
get(int index)
int
size()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Method Detail
-
get
public TO get(int index)
-
-