jaggregate
Interface UnaryCondition<A>

Type Parameters:
A - a constraint on the allowable types for the predicate's argument.
All Known Implementing Classes:
UnaryPredicate

public interface UnaryCondition<A>

Interface for a predicate that accepts one argument.

This interface was extracted from UnaryPredicate and methods using it retrofitted to use this interface, to allow BGGA-style closures to be converted to an interface type representing the predicate.

Since:
3.3
Version:
$Id: UnaryCondition.java,v 1.3 2008/05/12 00:23:14 pholser Exp $
Author:
Paul Holser

Method Summary
 boolean matches(A target)
          Evaluates this predicate against the given target.
 

Method Detail

matches

boolean matches(A target)
Evaluates this predicate against the given target.

Parameters:
target - the argument to the predicate
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