This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/src/jrummikub/util/IEvent2.java
Matthias Schiffer 8ee379b1ab Fix formatting and documentation in util package
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@169 72836036-5685-4462-b002-a69064685172
2011-05-06 11:20:21 +02:00

28 lines
650 B
Java

package jrummikub.util;
/**
* Interface for classes that can generate events having a two parameters
*
* @param <T1>
* type of the first event parameter
* @param <T2>
* type of the second event parameter
*/
public interface IEvent2<T1, T2> {
/**
* Start to publish all events to a given listener
*
* @param listener
* target listener
* @return a connection to remove the listener
*/
public Connection add(IListener2<T1, T2> listener);
/**
* Stop publishing events to a given listener
*
* @param listener
* target listener
*/
public void remove(IListener2<T1, T2> listener);
}