From 5f3fb9afece2125cbeba79d61a8d88460b7878d7 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Tue, 27 Jan 2015 18:40:32 -0700 Subject: initial commit --- .../src/com/modulus/access/ArrayFunction.java | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 project/JavaCommon/src/com/modulus/access/ArrayFunction.java (limited to 'project/JavaCommon/src/com/modulus/access/ArrayFunction.java') 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 E + * and returns an object of type T. + * + * Usually, the return type and the argument types are the same type. + * + * @author jrahm + * + * @param the return type of this function + * @param the argument type of the function + */ +public interface ArrayFunction< T, E > { + + /** + * Executes this function using the arguments args + * and returns an object of type T + * + * @param args the arguments to execute this function with. + * @return some value of type T + */ + public T execute( E[] args ); +} -- cgit