org.apache.commons.functor
Interface UnaryPredicate<A>

Type Parameters:
A - the argument type.
All Superinterfaces:
Functor, UnaryFunctor<A>
All Known Implementing Classes:
BinaryPredicateUnaryPredicate, CompositeUnaryPredicate, ConditionalUnaryPredicate, Constant, Identity, IsEmpty, IsNotNull, IsNull, IsWithinRange, LeftBoundPredicate, Limit, Offset, PredicateUnaryPredicate, RightBoundPredicate, UnaryAnd, UnaryFunctionUnaryPredicate, UnaryNot, UnaryOr

public interface UnaryPredicate<A>
extends UnaryFunctor<A>

A functor that takes one argument and returns a boolean value.

Implementors are encouraged but not required to make their functors Serializable.

Since:
1.0
Version:
$Revision: 1156740 $ $Date: 2011-08-11 21:02:40 +0200 (Thu, 11 Aug 2011) $
Author:
Rodney Waldhoff

Method Summary
 boolean test(A obj)
          Evaluate this predicate.
 
Methods inherited from interface org.apache.commons.functor.Functor
equals, hashCode, toString
 

Method Detail

test

boolean test(A obj)
Evaluate this predicate.

Parameters:
obj - the A object to test
Returns:
the result of this test


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.