Class GCodedSequencesIterator
java.lang.Object
com.glitchybyte.glib.combinatorics.GCodedSequencesIterator
- All Implemented Interfaces:
Iterator<int[]>
Iterator class for coded sequences.
-
Constructor Summary
ConstructorsConstructorDescriptionGCodedSequencesIterator(GCodedSequencesGenerator codedGenerator) Creates a coded sequence iterator with the characteristics described incodedGenerator. -
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
-
GCodedSequencesIterator
Creates a coded sequence iterator with the characteristics described incodedGenerator.- Parameters:
codedGenerator- Describes the characteristics for this iterator.
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrueif the iteration has more elements. (In other words, returnstrueifnext()would return an element rather than throwing an exception.) -
next
public int[] next()Returns the next element in the iteration.- Specified by:
nextin interfaceIterator<int[]>- Returns:
- the next element in the iteration
- Throws:
NoSuchElementException- if the iteration has no more elements
-