public interface DefaultListenerStore extends ListenerStore
ListenerStore implementation. This class implements the
default semantics of a ListenerStore with no additional features.
Performance notes: This store uses a HashMap of ArrayLists to manage the Listeners. Thus, adding a Listener performs in
O(1) and removing in O(n) where n is the number of
Listeners registered for the class for which the Listener should be removed.
The get method retrieves the stored listeners from a map
in O(1) but then needs to create a copy of this list in order to
avoid concurrency problems. It therefore performs in O(n).
| Modifier and Type | Method and Description |
|---|---|
static DefaultListenerStore |
create()
Creates a new DefaultListenerStore instance.
|
add, add, clearAll, clearAll, close, get, isSequential, remove, remove, synchronizedViewstatic DefaultListenerStore create()
Copyright © 2014–2015. All rights reserved.