Coverage Report - jaggregate.BinaryCondition
 
Classes in this File Line Coverage Branch Coverage Complexity
BinaryCondition
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 predicate that accepts two arguments.
 10  
  * <p/>
 11  
  * This interface was extracted from {@link BinaryPredicate} 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 predicate.
 14  
  *
 15  
  * @param <A1> a constraint on the allowable types for the predicate's first argument
 16  
  * @param <A2> a constraint on the allowable types for the predicate's second argument
 17  
  * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a>
 18  
  * @version $Id: BinaryCondition.java,v 1.3 2008/10/03 19:01:23 pholser Exp $
 19  
  * @since 3.3
 20  
  */
 21  
 public interface BinaryCondition<A1, A2> {
 22  
     /**
 23  
      * Evaluates this predicate against the given targets.
 24  
      *
 25  
      * @param first first argument to the predicate
 26  
      * @param second second argument to the predicate
 27  
      * @return the result of the evaluation
 28  
      */
 29  
     boolean matches( A1 first, A2 second );
 30  
 }