T - the event typepublic static final class EventListenerList.EventListenerIterator<T extends Event> extends Object implements 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 and 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
hasNext in interface Iterator<EventListener<? super T extends Event>>public EventListener<? super T> next()
next in interface Iterator<EventListener<? super T extends Event>>public void invokeNext(Event event)
event - the event objectNoSuchElementException - if iteration is at its endpublic void remove()
remove in interface Iterator<EventListener<? super T extends Event>>Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.