diff options
Diffstat (limited to 'project/JavaCommon/src/com/modulus/access/ArrayFunction.java')
| -rw-r--r-- | project/JavaCommon/src/com/modulus/access/ArrayFunction.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/project/JavaCommon/src/com/modulus/access/ArrayFunction.java b/project/JavaCommon/src/com/modulus/access/ArrayFunction.java new file mode 100644 index 0000000..89ce636 --- /dev/null +++ b/project/JavaCommon/src/com/modulus/access/ArrayFunction.java @@ -0,0 +1,24 @@ +package com.modulus.access; + +/** + * Any kind of function that takes an array of type <code>E</code> + * and returns an object of type <code>T</code>. + * + * Usually, the return type and the argument types are the same type. + * + * @author jrahm + * + * @param <T> the return type of this function + * @param <E> the argument type of the function + */ +public interface ArrayFunction< T, E > { + + /** + * Executes this function using the arguments <code>args</code> + * and returns an object of type <code>T</code> + * + * @param args the arguments to execute this function with. + * @return some value of type <code>T</code> + */ + public T execute( E[] args ); +} |