T - type of the listener.public class WeakReferenceListenerStore<T> extends Object implements Store<T>
WeakReference.| Constructor and Description |
|---|
WeakReferenceListenerStore()
Creates a listener store.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T listener)
Adds an item to the store.
|
boolean |
contains(T listener)
Verifies if the given item is contained in the store.
|
Collection<T> |
getContent()
Gets an unmodifiable snapshot of the store.
|
void |
remove(T listener)
Removes an item from the store.
|
public WeakReferenceListenerStore()
public void remove(T listener)
Storepublic boolean contains(T listener)
Storepublic Collection<T> getContent()
StoregetContent in interface Store<T>Copyright © 2014. All Rights Reserved.