Interface StringSplitter.Iterator

All Superinterfaces:
Iterator<String>, SmartIterator<String>, SmartIterator.Detachable<String>
All Known Subinterfaces:
StringSplitter.Async.Iterator
Enclosing interface:
StringSplitter

public static interface StringSplitter.Iterator extends SmartIterator.Detachable<String>
An iterator over the elements split by a splitter.

May, depending on implementation, split components lazily on demand.

Since:
1.0
  • Method Details

    • splitter

      @Pure StringSplitter splitter()
      Retrieves the splitter that created this iterator.
      Returns:
      The source splitter.
    • toIterator

      Description copied from interface: SmartIterator.Detachable
      Returns 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:
      toIterator in interface SmartIterator.Detachable<String>
      Returns:
      The iterator.