Class IncrementalLengthIterator
java.lang.Object
com.github.curiousoddman.rgxgen.iterators.IncrementalLengthIterator
- All Implemented Interfaces:
StringIterator,Iterator<String>
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementalLengthIterator(Supplier<StringIterator> supplier, int min, int max) -
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
-
IncrementalLengthIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
reset
public final void reset()Description copied from interface:StringIteratorReset the iterator to the initial position. After reset it will start iterating from the first value.Can be used to restart iterator that returns
falsewhenhasNext()is called.- Specified by:
resetin interfaceStringIterator
-
current
Description copied from interface:StringIteratorReturn same value as last call tonext(). Behavior is not defined if method is called beforenext()- Specified by:
currentin interfaceStringIterator- Returns:
- Value returned by last call to
next().
-