EventIterator (Java SE 15 & JDK 15)
Description: declaration: module: jdk.jdi, package: com.sun.jdi.event, interface: EventIterator
Keywords: com.sun.jdi.event.EventIterator interface

Module jdk.jdi
Package com.sun.jdi.event

# Interface EventIterator

All Superinterfaces:
  `Iterator<Event>`

    public interface EventIterator
    extends Iterator<Event>

EventIterators are unmodifiable.

Since:
  1.3
See Also:
  `Event`, `EventSet`, `Set.iterator()`

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `Event` | `nextEvent()` |

  ### Methods declared in interface java.util.Iterator

  `forEachRemaining, hasNext, next, remove`

- ## Method Details

  - ### nextEvent

    Event nextEvent()
    Returns:
      The next `Event` in an `EventSet`.