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)
Store
public boolean contains(T listener)
Store
public Collection<T> getContent()
Store
getContent
in interface Store<T>
Copyright © 2015. All Rights Reserved.