public interface IntegerIterator
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if this list iterator has more elements when
traversing the list in the forward direction.
|
boolean |
hasPrevious()
Returns true if this list iterator has more elements when
traversing the list in the reverse direction.
|
int |
next()
Returns the next element in the list.
|
int |
previous()
Returns the previous element in the list.
|
void |
remove()
Removes from the list the last element returned by the iterator.
|
boolean hasNext()
int next()
boolean hasPrevious()
int previous()
void remove()
Some implementations of IntegerIterator may choose to not implement this method, in which case an appropriate exception is generated.
Copyright © 2015. All rights reserved.