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.


Field Summary
static IntIterator EMPTY
           
 
Method Summary
 int nextInt()
          more efficient since no objects have to be instantiated
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Field Detail

EMPTY

static final IntIterator EMPTY
Method Detail

nextInt

int nextInt()
more efficient since no objects have to be instantiated