A
- the actual type of AmetysObject
s.public interface AmetysObjectIterator<A extends AmetysObject> extends Iterator<A>
AmetysObject
s.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.
|
default void |
skip(long skipNum)
Skip a number of elements in the iterator.
|
forEachRemaining, hasNext, next, remove
long getPosition()
next
call.
long getSize()
default void skip(long skipNum)
skipNum
times Iterator.next()
.skipNum
- the non-negative number of elements to skipNoSuchElementException
- if skipped past the last element in the iterator.