mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Add clear() method to event listener queues.
This commit is contained in:
@@ -26,6 +26,9 @@ public class ListOfListeners<T> {
|
||||
}
|
||||
}
|
||||
}
|
||||
public final void clear() {
|
||||
listeners.clear();
|
||||
}
|
||||
|
||||
protected final void callAllListeners(Function<T> e) {
|
||||
for (int i = listeners.size()-1; i >= 0; --i) {
|
||||
|
||||
Reference in New Issue
Block a user