Class TransformingList<FROM,TO>
java.lang.Object
java.util.AbstractCollection<TO>
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:
Iterable<TO>, Collection<TO>, List<TO>
Converts elements of one list to a different type on demand.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list to transform.Converts elements to the new type.Fields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
source
-
transform
-
-
Constructor Details
-
TransformingList
-
-
Method Details
-
get
-
size
public int size()- Specified by:
sizein interfaceCollection<FROM>- Specified by:
sizein interfaceList<FROM>- Specified by:
sizein classAbstractCollection<TO>
-