TYPE
- the type of the data being passed around.public interface Listenable<TYPE>
Modifier and Type | Method and Description |
---|---|
void |
addListener(Listener<TYPE> l)
Add listener for this observable
|
void |
notifyChange(TYPE data)
notify a change in the data.
|
void |
removeListener(Listener<TYPE> l)
Remove listener for this observable
|
void addListener(Listener<TYPE> l)
l
- the listener to addvoid removeListener(Listener<TYPE> l)
l
- the listener to removevoid notifyChange(TYPE data)
data
- an optional value to pass to our listeners.