uka.util
Class IntSequence

java.lang.Object
  extended byuka.util.IntSequence
All Implemented Interfaces:
IntIterator
Direct Known Subclasses:
IntQueue

public abstract class IntSequence
extends java.lang.Object
implements IntIterator

This is an abstract superclass for immutable iterators over collections of int values.

Author:
Bernhard Haumacher
See Also:
IntIterator

Field Summary
static IntIterator EMPTY
           
 
Constructor Summary
IntSequence()
           
 
Method Summary
static IntSequence create(int start, int stop)
          Creates a new IntSequence of values from start inclusive to stop exclusive.
 void remove()
          Removes the last int value returned from the underlying collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uka.util.IntIterator
hasNext, next
 

Field Detail

EMPTY

public static final IntIterator EMPTY
Constructor Detail

IntSequence

public IntSequence()
Method Detail

remove

public final void remove()
Description copied from interface: IntIterator
Removes the last int value returned from the underlying collection.

Specified by:
remove in interface IntIterator
Throws:
UnsupportedOperationException
See Also:
IntIterator.remove()

create

public static IntSequence create(int start,
                                 int stop)
Creates a new IntSequence of values from start inclusive to stop exclusive.