net.sf.molae.pipe.cube
Class LexicographicalIterator<E>
java.lang.Object
net.sf.molae.pipe.cube.LexicographicalIterator<E>
- All Implemented Interfaces:
- Iterator<List<E>>
public final class LexicographicalIterator<E>
- extends Object
- implements Iterator<List<E>>
Provides a lexicographical iteration of a
cartesian product
of sets.
Use CartesianCollection
to get an instance of this class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<List<E>>
next
public List<E> next()
- Returns the next element in the interation.
- Specified by:
next
in interface Iterator<List<E>>
- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException
- iteration has no more elements.
remove
public void remove()
- Specified by:
remove
in interface Iterator<List<E>>
- Throws:
UnsupportedOperationException
- always