jaggregate
Interface BinaryFunctor<A1,A2,R>
- Type Parameters:
A1
- a constraint on the allowable types for the functor's first argumentA2
- a constraint on the allowable types for the functor's second argumentR
- a constraint on the allowable types for the functor's return value
- All Known Implementing Classes:
- BinaryFunction
public interface BinaryFunctor<A1,A2,R>
Interface for a functor that accepts two arguments.
This interface was extracted from BinaryFunction
and methods
using it retrofitted to use this interface, to allow BGGA-style closures to be
converted to an interface type representing the functor.
- Since:
- 3.3
- Version:
- $Id: BinaryFunctor.java,v 1.3 2008/10/03 19:01:23 pholser Exp $
- Author:
- Paul Holser
Method Summary |
R |
evaluate(A1 first,
A2 second)
Evaluates this functor against the given targets. |
evaluate
R evaluate(A1 first,
A2 second)
- Evaluates this functor against the given targets.
- Parameters:
first
- first argument to the functorsecond
- second argument to the functor
- Returns:
- the result of the evaluation
© Copyright 2004-2008 Paul R. Holser, Jr. All rights reserved.
Licensed under the Academic Free License version 3.0.
pholser@alumni.rice.edu