Coverage Report - jaggregate.BinaryFunctor
 
Classes in this File Line Coverage Branch Coverage Complexity
BinaryFunctor
N/A
N/A
0
 
 1  
 /*
 2  
  Copyright 2004-2008 Paul R. Holser, Jr.  All rights reserved.
 3  
  Licensed under the Academic Free License version 3.0
 4  
  */
 5  
 
 6  
 package jaggregate;
 7  
 
 8  
 /**
 9  
  * Interface for a functor that accepts two arguments.
 10  
  * <p/>
 11  
  * This interface was extracted from {@link BinaryFunction} and methods
 12  
  * using it retrofitted to use this interface, to allow BGGA-style closures to be
 13  
  * converted to an interface type representing the functor.
 14  
  *
 15  
  * @param <A1> a constraint on the allowable types for the functor's first argument
 16  
  * @param <A2> a constraint on the allowable types for the functor's second argument
 17  
  * @param <R> a constraint on the allowable types for the functor's return value
 18  
  * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
 19  
  * @version $Id: BinaryFunctor.java,v 1.3 2008/10/03 19:01:23 pholser Exp $
 20  
  * @since 3.3
 21  
  */
 22  
 public interface BinaryFunctor<A1, A2, R> {
 23  
     /**
 24  
      * Evaluates this functor against the given targets.
 25  
      *
 26  
      * @param first first argument to the functor
 27  
      * @param second second argument to the functor
 28  
      * @return the result of the evaluation
 29  
      */
 30  
     R evaluate( A1 first, A2 second );
 31  
 }