Klasse MappingContainerViewIterator<E,T>
java.lang.Object
ch.nolix.core.container.arraylist.MappingContainerViewIterator<E,T>
- Typparameter:
E- is the type of the elements of aMappingContainerViewIterator.T- is the type of the elements aMappingContainerViewIteratormaps from its elements.
- Alle implementierten Schnittstellen:
CopyableIterator<T>, Copyable<CopyableIterator<T>>, Iterator<T>
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic <T,T2> MappingContainerViewIterator <T, T2> forIteratorAndMapper(CopyableIterator<T> iterator, Function<T, T2> mapper) getCopy()booleanhasNext()next()Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden Iterator
forEachRemaining, remove
-
Methodendetails
-
forIteratorAndMapper
public static <T,T2> MappingContainerViewIterator<T,T2> forIteratorAndMapper(CopyableIterator<T> iterator, Function<T, T2> mapper) - Typparameter:
T- is the type of the elements of the createdMappingContainerViewIterator.T2- is the type of the elements the createdMappingContainerViewIteratormaps from its elements.- Parameter:
iterator-mapper-- Gibt zurück:
- a new
MappingContainerViewIteratorwith the given iterator and mapper. - Löst aus:
ArgumentIsNullException- if the given container is null.ArgumentIsNullException- if the given mapper is null.
-
getCopy
-
hasNext
-
next
-