Uses of Interface
org.apache.commons.functor.Predicate
-
Packages that use Predicate Package Description 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 Modifier and Type Class Description classBoundPredicateAdapts aUnaryPredicateto thePredicateinterface using a constant unary argument.classFullyBoundPredicateAdapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.classFunctionPredicateFields in org.apache.commons.functor.adapter declared as Predicate Modifier and Type Field Description private PredicatePredicateFunction. predicateThePredicateI'm wrapping.private PredicatePredicateUnaryPredicate. predicateThePredicateI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type Predicate Modifier and Type Method Description static PredicateFunctionPredicateFunction. 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 Constructor Description 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 Modifier and Type Class Description classConstant<T>Evaluatesto constant value.classLimitA predicate that returnstruethe first n times it is invoked.classOffsetA predicate that returnsfalsethe first n times it is invoked, andtruethereafter. -
Uses of Predicate in org.apache.commons.functor.core.algorithm
Fields in org.apache.commons.functor.core.algorithm declared as Predicate Modifier and Type Field Description private PredicatePredicatedLoop. testThe test wether to keep going.Methods in org.apache.commons.functor.core.algorithm that return Predicate Modifier and Type Method Description protected PredicatePredicatedLoop. getTest()Get the test for this loop.Constructors in org.apache.commons.functor.core.algorithm with parameters of type Predicate Constructor Description DoUntil(Procedure body, Predicate test)Create a new DoUntil.DoWhile(Procedure body, Predicate test)Create a new DoWhile.PredicatedLoop(Procedure body, Predicate test)Create a new PredicatedLoop.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 Modifier and Type Class Description classAnd(package private) classBasePredicateListAbstract base class forPredicatescomposed of a list ofPredicates.classConditionalPredicateAPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classNotTeststo the logical inverse of some other predicate.classOrFields in org.apache.commons.functor.core.composite declared as Predicate Modifier and Type Field Description private PredicateAbstractLoopProcedure. conditionThe condition has to be verified that while true, forces the action repetition.private PredicateConditionalPredicate. elsePredthe predicate executed if the condition is not satisfied.private PredicateConditionalFunction. ifPredthe condition to be evaluated.private PredicateConditionalPredicate. ifPredthe condition to be evaluated.private PredicateConditionalProcedure. ifPredthe condition to be evaluated.private PredicateNot. predicateThe adapted predicate has to be negated.private PredicateConditionalPredicate. thenPredthe predicate executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type Predicate Modifier and Type Field Description private java.util.List<Predicate>BasePredicateList. listA list where storing the adapted predicates.Methods in org.apache.commons.functor.core.composite that return Predicate Modifier and Type Method Description protected PredicateAbstractLoopProcedure. getCondition()Get the condition.static PredicateNot. not(Predicate that)Get a Not instance forthat.static PredicateConditional. predicate(Predicate q, Predicate r, Predicate s)Create a conditional Predicate.Methods in org.apache.commons.functor.core.composite that return types with arguments of type Predicate Modifier and Type Method Description protected java.util.List<Predicate>BasePredicateList. getPredicateList()Get the "live" list ofPredicates.Methods in org.apache.commons.functor.core.composite with parameters of type Predicate Modifier and Type Method Description protected voidBasePredicateList. addPredicate(Predicate p)Add a Predicate to the list.AndAnd. and(Predicate p)Add a Predicate.static <T> Function<T>Conditional. function(Predicate q, Function<? extends T> r, Function<? extends T> s)Create a conditional Function.static PredicateNot. not(Predicate that)Get a Not instance forthat.OrOr. or(Predicate p)Fluently add a Predicate.static PredicateConditional. predicate(Predicate q, Predicate r, Predicate s)Create a conditional Predicate.static ProcedureConditional. procedure(Predicate q, Procedure r)Create a guarded Procedure.static ProcedureConditional. procedure(Predicate q, Procedure r, Procedure s)Create a conditional Procedure.Constructors in org.apache.commons.functor.core.composite with parameters of type Predicate Constructor Description AbstractLoopProcedure(Predicate condition, Procedure action)Create a new AbstractLoopProcedure.And(Predicate... predicates)Create a new And instance.BasePredicateList(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.Not(Predicate predicate)Create a new Not.Or(Predicate... predicates)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 Constructor Description And(java.lang.Iterable<Predicate> predicates)Create a new And instance.BasePredicateList(java.lang.Iterable<Predicate> predicates)Create a new BasePredicateList instance.Or(java.lang.Iterable<Predicate> predicates)Create a new Or instance.
-