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

All Superinterfaces:
Functor, UnaryFunctor<A>
All Known Implementing Classes:
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: 665761 $ $Date: 2008-06-09 11:50:56 -0500 (Mon, 09 Jun 2008) $
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-2008 The Apache Software Foundation. All Rights Reserved.