class EmptyIterable.EmptyIterator extends Object implements AmetysObjectIterator<A>
Constructor and Description |
---|
EmptyIterator() |
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 |
remove() |
void |
skip(long skipNum)
Skip a number of elements in the iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
EmptyIterator()
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>
public void remove()
remove
in interface Iterator<A extends AmetysObject>