diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-27 18:40:32 -0700 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-27 18:40:32 -0700 |
| commit | 5f3fb9afece2125cbeba79d61a8d88460b7878d7 (patch) | |
| tree | b0e1e60bae9927a9449561bf7fe9431a54d12be9 /project/JavaCommon/src/com/modulus/access/ArrayFunction.java | |
| download | LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.gz LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.tar.bz2 LegacyQBar-5f3fb9afece2125cbeba79d61a8d88460b7878d7.zip | |
initial commit
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 ); +} |