public class ListenerManagerImpl extends LinkedList<ISpecRunnerListener> implements IListenerManager
modCount| Constructor and Description |
|---|
ListenerManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ISpecRunnerListener e) |
<T extends ISpecRunnerListener> |
filterByType(Class<T> type)
Filter listeners by their types.
|
void |
remove(String name)
Remove a listener by its name.
|
void |
reset()
Reset all listeners.
|
add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, toArray, toArrayiteratorequals, hashCode, listIterator, removeRange, subListcontainsAll, isEmpty, removeAll, retainAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitpublic void reset()
IListenerManagerreset in interface IListenerManagerpublic boolean add(ISpecRunnerListener e)
add in interface Collection<ISpecRunnerListener>add in interface Deque<ISpecRunnerListener>add in interface List<ISpecRunnerListener>add in interface Queue<ISpecRunnerListener>add in class LinkedList<ISpecRunnerListener>public void remove(String name)
IListenerManagerremove in interface IListenerManagername - The name of the listener to be removed.public <T extends ISpecRunnerListener> List<T> filterByType(Class<T> type)
IListenerManagerfilterByType in interface IListenerManagerT - The listener type.type - The type to be filtered.Copyright © 2016. All rights reserved.