Uses of Interface
org.apache.commons.functor.Predicate

Packages that use Predicate
org.apache.commons.functor.adapter Classes that adapt one functor interface to another. 
org.apache.commons.functor.core Commonly used functor implementations. 
org.apache.commons.functor.core.algorithm Various algorithm-esque functors. 
org.apache.commons.functor.core.composite Functors composed of other functors. 
 

Uses of Predicate in org.apache.commons.functor.adapter
 

Classes in org.apache.commons.functor.adapter that implement Predicate
 class BoundPredicate
          Adapts a UnaryPredicate to the Predicate interface using a constant unary argument.
 class FunctionPredicate
          Adapts a Boolean-valued Function to the Predicate interface.
 

Methods in org.apache.commons.functor.adapter with parameters of type Predicate
static PredicateFunction PredicateFunction.adapt(Predicate predicate)
          Adapt a Predicate to the Function interface.
static
<A> PredicateUnaryPredicate<A>
PredicateUnaryPredicate.adapt(Predicate predicate)
          Adapt a Predicate to the UnaryPredicate interface.
 

Constructors in org.apache.commons.functor.adapter with parameters of type Predicate
PredicateFunction(Predicate predicate)
          Create a new PredicateFunction.
PredicateUnaryPredicate(Predicate predicate)
          Create a new PredicateUnaryPredicate.
 

Uses of Predicate in org.apache.commons.functor.core
 

Classes in org.apache.commons.functor.core that implement Predicate
 class Constant<T>
          Evaluates to constant value.
 class Limit
          A predicate that returns true the first n times it is invoked.
 class Offset
          A predicate that returns false the first n times it is invoked, and true thereafter.
 

Uses of Predicate in org.apache.commons.functor.core.algorithm
 

Constructors in org.apache.commons.functor.core.algorithm with parameters of type Predicate
DoUntil(Procedure body, Predicate test)
          Create a new DoUntil.
DoWhile(Procedure body, Predicate test)
          Create a new DoWhile.
UntilDo(Predicate test, Procedure body)
          Create a new UntilDo.
WhileDo(Predicate test, Procedure body)
          Create a new WhileDo.
 

Uses of Predicate in org.apache.commons.functor.core.composite
 

Classes in org.apache.commons.functor.core.composite that implement Predicate
 class And
          Tests true iff none of its children test false.
 class ConditionalPredicate
          A Predicate similiar to Java's "ternary" or "conditional" operator (? :).
 class Not
          Tests to the logical inverse of some other predicate.
 class Or
          Tests true iff at least one of its children test true.
 

Methods in org.apache.commons.functor.core.composite that return Predicate
protected  Predicate AbstractLoopProcedure.getCondition()
          Get the condition.
static Predicate Not.not(Predicate that)
          Get a Not instance for that.
 

Methods in org.apache.commons.functor.core.composite with parameters of type Predicate
 And And.and(Predicate p)
          Add a Predicate.
static Predicate Not.not(Predicate that)
          Get a Not instance for that.
 Or Or.or(Predicate p)
          Fluently add a Predicate.
 

Constructors in org.apache.commons.functor.core.composite with parameters of type Predicate
AbstractLoopProcedure(Predicate condition, Procedure action)
          Create a new AbstractLoopProcedure.
And(Predicate p)
          Create a new And.
And(Predicate p, Predicate q)
          Create a new And.
And(Predicate p, Predicate q, Predicate r)
          Create a new And.
ConditionalFunction(Predicate ifPred, Function<? extends T> thenFunc, Function<? extends T> elseFunc)
          Create a new ConditionalFunction.
ConditionalPredicate(Predicate ifPred, Predicate thenPred, Predicate elsePred)
          Create a new ConditionalPredicate.
ConditionalProcedure(Predicate ifPred, Procedure thenProc)
          Create a new ConditionalProcedure.
ConditionalProcedure(Predicate ifPred, Procedure thenProc, Procedure elseProc)
          Create a new ConditionalProcedure.
DoWhileProcedure(Procedure action, Predicate condition)
          Create a new DoWhileProcedure.
Not(Predicate predicate)
          Create a new Not.
Or(Predicate p)
          Create a new Or.
Or(Predicate p, Predicate q)
          Create a new Or.
Or(Predicate p, Predicate q, Predicate r)
          Create a new Or.
WhileDoProcedure(Predicate condition, Procedure action)
          Create a new WhileDoProcedure.
 



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