org.apache.commons.functor
Interface UnaryFunction<A,T>

Type Parameters:
A - the argument type.
T - the returned value type.
All Superinterfaces:
Functor, UnaryFunctor<A>
All Known Implementing Classes:
BinaryFunctionUnaryFunction, CollectionTransformer, CompositeUnaryFunction, ConditionalUnaryFunction, Constant, FoldLeft, FoldRight, FunctionUnaryFunction, Identity, LeftBoundFunction, RightBoundFunction, Size, UnaryPredicateUnaryFunction, UnaryProcedureUnaryFunction

public interface UnaryFunction<A,T>
extends UnaryFunctor<A>

A functor that takes one argument and returns an Object value.

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

Since:
1.0
Version:
$Revision: 1156738 $ $Date: 2011-08-11 21:01:15 +0200 (Thu, 11 Aug 2011) $
Author:
Rodney Waldhoff

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

Method Detail

evaluate

T evaluate(A obj)
Evaluate this function.

Parameters:
obj - the A object to evaluate
Returns:
the T result of this evaluation


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