Interface StringIterator
-
- All Known Implementing Classes:
ArrayIterator,CaseVariationIterator,ChoiceIterator,IncrementalLengthIterator,NegativeStringIterator,PermutationsIterator,ReferenceIterator,SingleValueIterator
public interface StringIterator extends Iterator<String>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringcurrent()Return same value as last call tonext().voidreset()Reset the iterator to the initial position.-
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next, remove
-
-
-
-
Method Detail
-
reset
void reset()
Reset 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.
-
current
String current()
Return same value as last call tonext(). Behavior is not defined if method is called beforenext()- Returns:
- Value returned by last call to
next().
-
-