Package org.apache.commons.functor
Interface Function<T>
-
- Type Parameters:
T- the returned value type.
- All Superinterfaces:
Functor,NullaryFunctor
- All Known Implementing Classes:
BoundFunction,ConditionalFunction,Constant,FullyBoundFunction,PredicateFunction,ProcedureFunction,RecursiveEvaluation,TransformedFunction,TransformedFunction.Helper
public interface Function<T> extends NullaryFunctor
A functor that takes no arguments and returns a value.Implementors are encouraged but not required to make their functors
Serializable.- Since:
- 1.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tevaluate()Evaluate this function.
-
-
-
Method Detail
-
evaluate
T evaluate()
Evaluate this function.- Returns:
- the T result of this evaluation
-
-