ch.javasoft.util.intcoll
Interface IntIterator
- All Superinterfaces:
- Iterator<Integer>
- All Known Subinterfaces:
- IntListIterator
- All Known Implementing Classes:
- AbstractIntIterator, AbstractIntListIterator, DefaultIntListIterator
public interface IntIterator
- extends Iterator<Integer>
An IntIterator is an iterator for integers, but
there is no need to instantiate integer objects. Instead of using
the Iterator.next() method, the method nextInt()
can be used.
|
Method Summary |
int |
nextInt()
more efficient since no objects have to be instantiated |
EMPTY
static final IntIterator EMPTY
nextInt
int nextInt()
- more efficient since no objects have to be instantiated