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, BinaryCompositeBinaryFunction.Helper, BinaryPredicateBinaryFunction, BinaryProcedureBinaryFunction, ComparatorFunction, ConditionalBinaryFunction, Constant, FindWithinGenerator, FoldLeft, FoldRight, IgnoreLeftFunction, IgnoreRightFunction, IndexOfInGenerator, Max, Min, TransformedBinaryFunction, TransformedBinaryFunction.Helper, TransposedFunction, UnaryCompositeBinaryFunction, UnaryCompositeBinaryFunction.Helper

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$ $Date$
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(L left, R right)
    Evaluate this function.

    Methods inherited from interface Functor

    equals, hashCode, toString
  • Method Details

    • 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