class ChainedAmetysObjectIterable.ChainedIterator extends Object implements AmetysObjectIterator<A>
Modifier and Type | Field and Description |
---|---|
private int |
_currentIterator |
private List<AmetysObjectIterator<A>> |
_its |
private long |
_position |
Constructor and Description |
---|
ChainedIterator(List<AmetysObjectIterator<A>> its) |
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Returns the current position within the iterator.
|
long |
getSize()
Returns the number of elements in the iterator.
|
boolean |
hasNext() |
A |
next() |
void |
skip(long skipNum)
Skip a number of elements in the iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, remove
private long _position
private int _currentIterator
private List<AmetysObjectIterator<A extends AmetysObject>> _its
public ChainedIterator(List<AmetysObjectIterator<A>> its)
public long getPosition()
AmetysObjectIterator
next
call.
getPosition
in interface AmetysObjectIterator<A extends AmetysObject>
public long getSize()
AmetysObjectIterator
getSize
in interface AmetysObjectIterator<A extends AmetysObject>
public void skip(long skipNum)
AmetysObjectIterator
skipNum
times Iterator.next()
.skip
in interface AmetysObjectIterator<A extends AmetysObject>
skipNum
- the non-negative number of elements to skippublic boolean hasNext()
hasNext
in interface Iterator<A extends AmetysObject>