Package org.apache.commons.functor
Interface UnaryPredicate<A>
-
- Type Parameters:
A- the argument type.
- All Superinterfaces:
Functor,UnaryFunctor<A>
- All Known Implementing Classes:
BaseUnaryPredicateList,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 abooleanvalue.Implementors are encouraged but not required to make their functors
Serializable.- Since:
- 1.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantest(A obj)Evaluate this predicate.
-
-
-
Method Detail
-
test
boolean test(A obj)
Evaluate this predicate.- Parameters:
obj- the A object to test- Returns:
- the result of this test
-
-