public class IncrementalLengthIterator extends Object implements StringIterator
| Constructor and Description |
|---|
IncrementalLengthIterator(Supplier<StringIterator> supplier,
int min,
int max) |
| Modifier and Type | Method and Description |
|---|---|
String |
current()
Return same value as last call to
next(). |
boolean |
hasNext() |
String |
next() |
void |
reset()
Reset the iterator to the initial position.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic IncrementalLengthIterator(Supplier<StringIterator> supplier, int min, int max)
public final void reset()
StringIterator
Can be used to restart iterator that returns false when hasNext() is called.
reset in interface StringIteratorpublic String current()
StringIteratornext().
Behavior is not defined if method is called before next()current in interface StringIteratornext().Copyright © 2022. All rights reserved.