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>
- Version:
- 2025-05-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic <E2,T2> MappingContainerViewIterator <E2, T2> forIteratorAndMapper(CopyableIterator<E2> iterator, Function<E2, 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 <E2,T2> MappingContainerViewIterator<E2,T2> forIteratorAndMapper(CopyableIterator<E2> iterator, Function<E2, T2> mapper) - Typparameter:
E2- 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
-