public abstract class AbstractListeners<L extends AbstractListeners.IAbstractListener>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractListeners.IAbstractListener |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.ref.WeakReference<L>> |
listeners |
Constructor and Description |
---|
AbstractListeners() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(L aListener) |
protected void |
doFlush() |
boolean |
removeListener(L aListener)
Remove a listener and return trie if there are no listeners left.
|
@NonNull protected final java.util.List<java.lang.ref.WeakReference<L extends AbstractListeners.IAbstractListener>> listeners