public class SimpleListenable<T> extends Object implements Listenable<T>
| Modifier and Type | Field and Description |
|---|---|
protected Collection<Listener<T>> |
listeners |
| Constructor and Description |
|---|
SimpleListenable() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Listener<T> listener)
Add a listener.
|
void |
deleteListener(Listener<T> listener)
Remove the given Listener such that he will no longer receive event
updates.
|
void |
fireEvent(T event)
fireEvent
|
protected final Collection<Listener<T>> listeners
public void addListener(Listener<T> listener)
Listener#fireEvent(Object) method.addListener in interface Listenable<T>listener - The listener to add.public void deleteListener(Listener<T> listener)
deleteListener in interface Listenable<T>listener - The listener to remove.public void fireEvent(T event)
fireEvent
event - a T object.Copyright © 2010–2017 EvoSuite. All rights reserved.