Class GSequencesIterator<TCodedGenerator extends GCodedSequencesGenerator,TItem>
java.lang.Object
com.glitchybyte.glib.combinatorics.GSequencesIterator<TCodedGenerator,TItem>
- Type Parameters:
TCodedGenerator- Type of sequences generator.TItem- Type of item.
public final class GSequencesIterator<TCodedGenerator extends GCodedSequencesGenerator,TItem>
extends Object
implements Iterator<List<TItem>>
Abstract sequences generator.
-
Constructor Summary
ConstructorsConstructorDescriptionGSequencesIterator(GSequencesGenerator<TCodedGenerator, TItem> generator) Creates an iterator of item sequences. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
GSequencesIterator
Creates an iterator of item sequences.- Parameters:
generator- Item sequences generator.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<TCodedGenerator extends GCodedSequencesGenerator>
-
next
- Specified by:
nextin interfaceIterator<TCodedGenerator extends GCodedSequencesGenerator>
-