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