| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| UnaryCondition |
|
| 0.0;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 one argument. | |
| 10 | * <p/> | |
| 11 | * This interface was extracted from {@link UnaryPredicate} 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 <A> a constraint on the allowable types for the predicate's argument. | |
| 16 | * @author <a href="mailto:pholser@alumni.rice.edu">Paul Holser</a> | |
| 17 | * @version $Id: UnaryCondition.java,v 1.3 2008/05/12 00:23:14 pholser Exp $ | |
| 18 | * @since 3.3 | |
| 19 | */ | |
| 20 | public interface UnaryCondition<A> { | |
| 21 | /** | |
| 22 | * Evaluates this predicate against the given target. | |
| 23 | * | |
| 24 | * @param target the argument to the predicate | |
| 25 | * @return the result of the evaluation | |
| 26 | */ | |
| 27 | boolean matches( A target ); | |
| 28 | } |