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

    Modifier and Type
    Method
    Description
    Evaluate this function.

    Methods inherited from interface Functor

    equals, hashCode, toString
  • Method Details

    • evaluate

      T evaluate()
      Evaluate this function.
      Returns:
      the T result of this evaluation