org.apache.commons.functor
Interface Function<T>

All Superinterfaces:
Functor, NullaryFunctor
All Known Implementing Classes:
BoundFunction, ConditionalFunction, Constant, PredicateFunction, ProcedureFunction, RecursiveEvaluation, TransformedFunction

public interface Function<T>
extends NullaryFunctor

A functor that takes no arguments and returns an Object value.

Implementors are encouraged but not required to make their functors Serializable.

Since:
1.0
Version:
$Revision: 665761 $ $Date: 2008-06-09 11:50:56 -0500 (Mon, 09 Jun 2008) $
Author:
Rodney Waldhoff

Method Summary
 T evaluate()
          Evaluate this function.
 
Methods inherited from interface org.apache.commons.functor.Functor
equals, hashCode, toString
 

Method Detail

evaluate

T evaluate()
Evaluate this function.

Returns:
the T result of this evaluation


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.