org.apache.commons.functor
Interface BinaryFunction<L,R,T>

Type Parameters:
L - the left argument type.
R - the right argument type.
T - the returned value type.
All Superinterfaces:
BinaryFunctor<L,R>, Functor
All Known Implementing Classes:
BinaryCompositeBinaryFunction, BinaryPredicateBinaryFunction, BinaryProcedureBinaryFunction, ComparatorFunction, ConditionalBinaryFunction, Constant, FindWithinGenerator, FoldLeft, FoldRight, IgnoreLeftFunction, IgnoreRightFunction, IndexOfInGenerator, Max, Min, TransformedBinaryFunction, TransposedFunction, UnaryCompositeBinaryFunction

public interface BinaryFunction<L,R,T>
extends BinaryFunctor<L,R>

A functor that takes two arguments and returns a value.

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

Since:
1.0
Version:
$Revision: 1156732 $ $Date: 2011-08-11 20:55:42 +0200 (Thu, 11 Aug 2011) $
Author:
Rodney Waldhoff

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

Method Detail

evaluate

T evaluate(L left,
           R right)
Evaluate this function.

Parameters:
left - the L element of the ordered pair of arguments
right - the R element of the ordered pair of arguments
Returns:
the T result of this function for the given arguments


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