T - the event typejava.util.Iterator<EventListener<? super T>>public static final class EventListenerList.EventListenerIterator<T extends Event> extends java.lang.Object implements java.util.Iterator<EventListener<? super T>>
Iterator implementation used by the
getEventListenerIterator() method. This iterator returns only
listeners compatible with a specified event type. It has a convenience
method for invoking the current listener in the iteration with an event.| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
void |
invokeNext(Event event) |
Obtains the next event listener in this iteration and invokes it with
the given event object.
|
EventListener<? super T> |
next() |
|
void |
remove() |
This implementation always throws an exception.
|
public boolean hasNext()
public EventListener<? super T> next()
public void invokeNext(Event event)
event - the event objectjava.util.NoSuchElementException - if iteration is at its endCopyright © 2001–2018. All rights reserved.