Fix formatting and documentation in util package
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@169 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
4390c76630
commit
8ee379b1ab
7 changed files with 48 additions and 39 deletions
|
@ -1,5 +1,11 @@
|
||||||
package jrummikub.util;
|
package jrummikub.util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A Connection object can be used to remove a listener from a event
|
||||||
|
*/
|
||||||
public interface Connection {
|
public interface Connection {
|
||||||
|
/**
|
||||||
|
* Removes the listener
|
||||||
|
*/
|
||||||
public void remove();
|
public void remove();
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@ public interface IEvent {
|
||||||
*
|
*
|
||||||
* @param listener
|
* @param listener
|
||||||
* target listener
|
* target listener
|
||||||
|
* @return a connection to remove the listener
|
||||||
*/
|
*/
|
||||||
public Connection add(IListener listener);
|
public Connection add(IListener listener);
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ public interface IEvent1<T> {
|
||||||
*
|
*
|
||||||
* @param listener
|
* @param listener
|
||||||
* target listener
|
* target listener
|
||||||
|
* @return a connection to remove the listener
|
||||||
*/
|
*/
|
||||||
public Connection add(IListener1<T> listener);
|
public Connection add(IListener1<T> listener);
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ public interface IEvent2<T1, T2> {
|
||||||
*
|
*
|
||||||
* @param listener
|
* @param listener
|
||||||
* target listener
|
* target listener
|
||||||
|
* @return a connection to remove the listener
|
||||||
*/
|
*/
|
||||||
public Connection add(IListener2<T1, T2> listener);
|
public Connection add(IListener2<T1, T2> listener);
|
||||||
|
|
||||||
|
|
Reference in a new issue