org.pfsw.bif.callback
Interface IFunction<T,R>

Type Parameters:
T - the type of the input to the function
R - the type of the result of the function

public interface IFunction<T,R>

Can be used like Java 8 java.util.Function, but is available for Java 6. Represents a function that accepts one argument and produces a result.

This is a functional interface whose functional method is apply(Object).


Method Summary
 R apply(T t)
          Applies this function to the given argument.
 

Method Detail

apply

R apply(T t)
Applies this function to the given argument.

Parameters:
t - the function argument
Returns:
the function result