SRCTYPE - The type of the source iteratorELEMENTTYPE - The type of this iteratorpublic class MapperIterator<SRCTYPE,ELEMENTTYPE> extends Object implements IIterableIterator<ELEMENTTYPE>
| Constructor and Description |
|---|
MapperIterator(IIterableIterator<? extends SRCTYPE> aBaseIter,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
MapperIterator(Iterable<? extends SRCTYPE> aBaseCont,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
MapperIterator(Iterator<? extends SRCTYPE> aBaseIter,
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IFunction<? super SRCTYPE,? extends ELEMENTTYPE> |
getConverter() |
boolean |
hasNext() |
ELEMENTTYPE |
next() |
void |
remove() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititerator, withFilter, withMappercontainsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEach, forEachBreakable, forEachByIndex, getCount, getCountforEach, spliteratorforEachRemainingpublic MapperIterator(@Nonnull IIterableIterator<? extends SRCTYPE> aBaseIter, @Nonnull IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
aBaseIter - The base iterable iterator to use. May not be null.aConverter - The converter to be used. May not be null.public MapperIterator(@Nonnull Iterable<? extends SRCTYPE> aBaseCont, @Nonnull IFunction<? super SRCTYPE,? extends ELEMENTTYPE> aConverter)
aBaseCont - The collection to iterate. May not be null.aConverter - The converter to be used. May not be null.@Nonnull public IFunction<? super SRCTYPE,? extends ELEMENTTYPE> getConverter()
public boolean hasNext()
hasNext in interface Iterator<ELEMENTTYPE>@Nullable public ELEMENTTYPE next()
next in interface Iterator<ELEMENTTYPE>public void remove()
remove in interface Iterator<ELEMENTTYPE>Copyright © 2014–2020 Philip Helger. All rights reserved.