me.shaftesbury.utils.functional.Func2 Maven / Gradle / Ivy
package me.shaftesbury.utils.functional;
/**
* The Func2 interface is designed to represent lambda / anonymous functions which are defined and used in situ. This models
* a function that takes two arguments.
* See Lambda function
* @param the type of the first argument
* @param the type of the second argument
* @param the type of the return value
* @see Closure
*/
public interface Func2 {
/**
* Call apply to evaluate the function object
* @param a the first input value
* @param b the second input value
* @return an element of type C
*/
C apply(A a, B b);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy