Mercurial > hg > Members > tatsuki > functionaljava-master > core
diff src/main/java/fj/F3.java @ 0:fe80c1edf1be
add getLoop
author | tatsuki |
---|---|
date | Fri, 20 Mar 2015 21:04:03 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/fj/F3.java Fri Mar 20 21:04:03 2015 +0900 @@ -0,0 +1,19 @@ +package fj; + +/** + * A transformation function of arity-3 from <code>A</code>, <code>B</code> and <code>C</code> to + * <code>D</code>. This type can be represented using the Java 7 closure syntax. + * + * @version %build.number% + */ +public interface F3<A, B, C, D> { + /** + * Transform <code>A</code>, <code>B</code> and <code>C</code> to <code>D</code>. + * + * @param a The <code>A</code> to transform. + * @param b The <code>B</code> to transform. + * @param c The <code>C</code> to transform. + * @return The result of the transformation. + */ + public D f(A a, B b, C c); +}