ELEMENTTYPE
- Type of object to iterate.public final class ArrayIterator<ELEMENTTYPE> extends Object implements IIterableIterator<ELEMENTTYPE>
Constructor and Description |
---|
ArrayIterator(ELEMENTTYPE... aArray) |
ArrayIterator(ELEMENTTYPE[] aArray,
int nOfs,
int nLength)
Private constructor with offset and length
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNext() |
ELEMENTTYPE |
next() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
iterator, withFilter, withMapper
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEach, forEachBreakable, forEachByIndex, getCount, getCount
forEach, spliterator
forEachRemaining, remove
@SafeVarargs public ArrayIterator(@Nonnull ELEMENTTYPE... aArray)
public ArrayIterator(@Nonnull ELEMENTTYPE[] aArray, @Nonnegative int nOfs, @Nonnegative int nLength)
aArray
- Source arraynOfs
- Offset. Must be ≥ 0.nLength
- Length. Must be ≥ 0.public boolean hasNext()
hasNext
in interface Iterator<ELEMENTTYPE>
@Nullable public ELEMENTTYPE next()
next
in interface Iterator<ELEMENTTYPE>
Copyright © 2014–2019 Philip Helger. All rights reserved.