net.sf.molae.pipe.cube
Class LexicographicalIterator

java.lang.Object
  |
  +--net.sf.molae.pipe.cube.LexicographicalIterator
All Implemented Interfaces:
Iterator

public final class LexicographicalIterator
extends Object
implements Iterator

Provides a lexicographical iteration of a cartesian product of sets. Use CartesianCollection to get an instance of this class.


Method Summary
 boolean hasNext()
           
 Object next()
          Returns the next element in the interation.
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Returns the next element in the interation.
Specified by:
next in interface Iterator
Returns:
the next element in the iteration.
Throws:
NoSuchElementException - iteration has no more elements.

remove

public void remove()
Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException - always