Uses of Interface
org.apache.commons.functor.Predicate
Packages that use Predicate
Package
Description
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Functors composed of other functors.
-
Uses of Predicate in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement PredicateModifier and TypeClassDescriptionfinal classAdapts aUnaryPredicateto thePredicateinterface using a constant unary argument.final classAdapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.final classFields in org.apache.commons.functor.adapter declared as PredicateModifier and TypeFieldDescriptionprivate final PredicatePredicateFunction.predicateThePredicateI'm wrapping.private final PredicatePredicateUnaryPredicate.predicateThePredicateI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type PredicateModifier and TypeMethodDescriptionstatic PredicateFunctionAdapt a Predicate to the Function interface.static <A> PredicateUnaryPredicate<A> Adapt a Predicate to the UnaryPredicate interface.Constructors in org.apache.commons.functor.adapter with parameters of type PredicateModifierConstructorDescriptionPredicateFunction(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 -
Uses of Predicate in org.apache.commons.functor.core.algorithm
Fields in org.apache.commons.functor.core.algorithm declared as PredicateModifier and TypeFieldDescriptionprivate final PredicatePredicatedLoop.testThe test wether to keep going.Methods in org.apache.commons.functor.core.algorithm that return PredicateModifier and TypeMethodDescriptionprotected PredicatePredicatedLoop.getTest()Get the test for this loop.Constructors in org.apache.commons.functor.core.algorithm with parameters of type PredicateModifierConstructorDescriptionCreate a new DoUntil.Create a new DoWhile.protectedPredicatedLoop(Procedure body, Predicate test) Create a new PredicatedLoop.Create a new UntilDo.Create a new WhileDo. -
Uses of Predicate in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement PredicateModifier and TypeClassDescriptionfinal class(package private) classAbstract base class forPredicatescomposed of a list ofPredicates.final classAPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).final classTeststo the logical inverse of some other predicate.final classFields in org.apache.commons.functor.core.composite declared as PredicateModifier and TypeFieldDescriptionprivate final PredicateAbstractLoopProcedure.conditionThe condition has to be verified that while true, forces the action repetition.private final PredicateConditionalPredicate.elsePredthe predicate executed if the condition is not satisfied.private final PredicateConditionalFunction.ifPredthe condition to be evaluated.private final PredicateConditionalPredicate.ifPredthe condition to be evaluated.private final PredicateConditionalProcedure.ifPredthe condition to be evaluated.private final PredicateNot.predicateThe adapted predicate has to be negated.private final PredicateConditionalPredicate.thenPredthe predicate executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type PredicateModifier and TypeFieldDescriptionBasePredicateList.listA list where storing the adapted predicates.Methods in org.apache.commons.functor.core.composite that return PredicateModifier and TypeMethodDescriptionprotected final PredicateAbstractLoopProcedure.getCondition()Get the condition.static PredicateGet a Not instance forthat.static PredicateCreate a conditional Predicate.Methods in org.apache.commons.functor.core.composite that return types with arguments of type PredicateModifier and TypeMethodDescriptionBasePredicateList.getPredicateList()Get the "live" list ofPredicates.Methods in org.apache.commons.functor.core.composite with parameters of type PredicateModifier and TypeMethodDescriptionprotected voidBasePredicateList.addPredicate(Predicate p) Add a Predicate to the list.Add a Predicate.static <T> Function<T> Create a conditional Function.static PredicateGet a Not instance forthat.Fluently add a Predicate.static PredicateCreate a conditional Predicate.static ProcedureCreate a guarded Procedure.static ProcedureCreate a conditional Procedure.Constructors in org.apache.commons.functor.core.composite with parameters of type PredicateModifierConstructorDescriptionprotectedAbstractLoopProcedure(Predicate condition, Procedure action) Create a new AbstractLoopProcedure.Create a new And instance.protectedBasePredicateList(Predicate... predicates) Create a new BasePredicateList instance.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.Create a new Not.Create a new Or instance.WhileDoProcedure(Predicate condition, Procedure action) Create a new WhileDoProcedure.Constructor parameters in org.apache.commons.functor.core.composite with type arguments of type Predicate