Interface StringSplitter.Iterator
- All Superinterfaces:
Iterator<String>,SmartIterator<String>,SmartIterator.Detachable<String>
- All Known Subinterfaces:
StringSplitter.Async.Iterator
- Enclosing interface:
- StringSplitter
An iterator over the elements split by a splitter.
May, depending on implementation, split components lazily on demand.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.sympho.modular_commands.utils.SmartIterator
SmartIterator.Detachable<E extends @NonNull Object>, SmartIterator.ListIterator<E extends @NonNull Object>, SmartIterator.Wrapper<E extends @NonNull Object> -
Field Summary
Fields inherited from interface dev.sympho.modular_commands.utils.SmartIterator
NO_MORE_ELEMENTS_ERROR -
Method Summary
Modifier and TypeMethodDescriptionsplitter()Retrieves the splitter that created this iterator.Returns an iterator that iterates over the remaining elements to be traversed by this iterator.Methods inherited from interface java.util.Iterator
forEachRemaining, next, removeMethods inherited from interface dev.sympho.modular_commands.utils.SmartIterator
hasNext, peekMethods inherited from interface dev.sympho.modular_commands.utils.SmartIterator.Detachable
toFlux, toSpliterator, toStream
-
Method Details
-
splitter
Retrieves the splitter that created this iterator.- Returns:
- The source splitter.
-
toIterator
StringSplitter.Iterator toIterator()Description copied from interface:SmartIterator.DetachableReturns an iterator that iterates over the remaining elements to be traversed by this iterator.The returned iterator is guaranteed to be detached from this iterator. In other words, they are completely independent of each other and may both be used separately.
- Specified by:
toIteratorin interfaceSmartIterator.Detachable<String>- Returns:
- The iterator.
-