uka.util
Class Sequence

java.lang.Object
  extended byuka.util.Sequence
All Implemented Interfaces:
Iterator
Direct Known Subclasses:
Queue

public abstract class Sequence
extends java.lang.Object
implements Iterator

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

Author:
Bernhard Haumacher
See Also:
Iterator

Field Summary
static Iterator EMPTY
           
 
Constructor Summary
Sequence()
           
 
Method Summary
 void remove()
          Removes the last Object 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.Iterator
hasNext, next
 

Field Detail

EMPTY

public static final Iterator EMPTY
Constructor Detail

Sequence

public Sequence()
Method Detail

remove

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

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