blob: 52b9bf464a2c147ea94fe31547d2f036ba5bc1ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package jrummikub.util;
/**
* Interface for classes that can generate events having a single parameter
*
* @param <T>
* type of the event parameter
*/
public interface IEvent1<T> {
/**
* Start to publish all events to a given listener
*
* @param listener
* target listener
*/
public void add(IListener1<T> listener);
/**
* Stop publishing events to a given listener
*
* @param listener
* target listener
*/
public void remove(IListener1<T> listener);
}
|