You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
325 B
19 lines
325 B
10 years ago
|
package net.sector.input;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Function object with return type
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
* @param <T> return type
|
||
|
*/
|
||
|
public interface Function<T> {
|
||
|
/**
|
||
|
* Execute this routine
|
||
|
*
|
||
|
* @param args optional arguments (not optional for implementations)
|
||
|
* @return returned value
|
||
|
*/
|
||
|
public T run(Object... args);
|
||
|
}
|