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

# 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`.