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
Modifizierer und TypMethodeBeschreibungstatic <E2,T2> MappingContainerViewIterator <E2, T2> forIteratorAndMapper(CopyableIterator<E2> iterator, Function<E2, T2> mapper) getCopy()booleanhasNext()next()Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden java.util.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
public boolean hasNext() -
next
-