ResetableIterator (Apache OpenNLP :: API 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.util, interface: ResetableIterator

Package opennlp.tools.util

# Interface ResetableIterator<E>

All Superinterfaces:
  `Iterator<E>`

public interface ResetableIterator<E> extends Iterator<E>
This interface makes an `Iterator` resettable.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `reset()`
  Sets the `Iterator` back to the first retrieved element.

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, hasNext, next, remove`

- ## Method Details

  - ### reset

    void reset()
    Sets the `Iterator` back to the first retrieved element. The already processed sequence of elements must be repeated.