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 aMappingContainerViewIterator
maps 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) boolean
hasNext()
next()
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von 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 createdMappingContainerViewIterator
maps from its elements.- Parameter:
iterator
-mapper
-- Gibt zurück:
- a new
MappingContainerViewIterator
with the given iterator and mapper. - Löst aus:
ArgumentIsNullException
- if the given container is null.ArgumentIsNullException
- if the given mapper is null.
-
createCopy
- Angegeben von:
createCopy
in SchnittstelleCopyable<E>
- Gibt zurück:
- a new copy of the current
Copyable
.
-
hasNext
public boolean hasNext() -
next
-