Uses of Interface
org.apache.commons.functor.BinaryPredicate
-
Packages that use BinaryPredicate 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.collection Collection-based functors, algorithms and utilities.org.apache.commons.functor.core.comparator Comparator- andComparable-based functors, algorithms and utilities.org.apache.commons.functor.core.composite Functors composed of other functors. -
-
Uses of BinaryPredicate in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryPredicate Modifier and Type Class Description classBinaryFunctionBinaryPredicate<L,R>classIgnoreLeftPredicate<L,R>Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the first binary argument.classIgnoreRightPredicate<L,R>Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryPredicate Modifier and Type Field Description private BinaryPredicate<? super L,? super R>BinaryPredicateBinaryFunction. predicateTheBinaryPredicateI'm wrapping.private BinaryPredicate<? super A,? super A>BinaryPredicateUnaryPredicate. predicateThe adaptedBinaryPredicate.private BinaryPredicate<java.lang.Object,java.lang.Object>FullyBoundPredicate. predicateTheBinaryPredicateI'm wrapping.private BinaryPredicate<java.lang.Object,? super A>LeftBoundPredicate. predicateTheBinaryPredicateI'm wrapping.private BinaryPredicate<? super A,java.lang.Object>RightBoundPredicate. predicateTheBinaryPredicateI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryPredicate Modifier and Type Method Description static <L,R>
BinaryPredicateBinaryFunction<L,R>BinaryPredicateBinaryFunction. adapt(BinaryPredicate<? super L,? super R> predicate)static <A> UnaryPredicate<A>BinaryPredicateUnaryPredicate. adapt(BinaryPredicate<? super A,? super A> predicate)Adapt a BinaryFunction as a UnaryFunction.static <L,R>
FullyBoundPredicateFullyBoundPredicate. bind(BinaryPredicate<? super L,? super R> predicate, L left, R right)Adapt a BinaryPredicate to the Predicate interface.static <L,R>
LeftBoundPredicate<R>LeftBoundPredicate. bind(BinaryPredicate<? super L,? super R> predicate, L arg)Adapt a BinaryPredicate to the UnaryPredicate interface.static <L,R>
RightBoundPredicate<L>RightBoundPredicate. bind(BinaryPredicate<? super L,? super R> predicate, R arg)Adapt a BinaryPredicate as a UnaryPredicate.Constructors in org.apache.commons.functor.adapter with parameters of type BinaryPredicate Constructor Description BinaryPredicateBinaryFunction(BinaryPredicate<? super L,? super R> predicate)Create a new BinaryPredicateBinaryFunction.BinaryPredicateUnaryPredicate(BinaryPredicate<? super A,? super A> predicate)Create a new BinaryPredicateUnaryPredicate.FullyBoundPredicate(BinaryPredicate<? super L,? super R> predicate, L left, R right)Create a new FullyBoundPredicate instance.LeftBoundPredicate(BinaryPredicate<? super L,? super A> predicate, L arg)Create a new LeftBoundPredicate.RightBoundPredicate(BinaryPredicate<? super A,? super R> predicate, R arg)Create a new RightBoundPredicate. -
Uses of BinaryPredicate in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement BinaryPredicate Modifier and Type Class Description classConstant<T>Evaluatesto constant value.classIsEqual<L,R>classIsInstance<T>classIsNotEqual<L,R>classIsNotSame<L,R>Teststhe reference (!=) inequality of its arguments.classIsSame<L,R>Teststhe reference (==) equality of its arguments.classLimitA predicate that returnstruethe first n times it is invoked.classOffsetA predicate that returnsfalsethe first n times it is invoked, andtruethereafter.Fields in org.apache.commons.functor.core declared as BinaryPredicate Modifier and Type Field Description static BinaryPredicate<java.lang.Object,java.lang.Object>IsNotNull. LEFTLeft-handed BinaryPredicate.static BinaryPredicate<java.lang.Object,java.lang.Object>IsNull. LEFTLeft-handed BinaryPredicate.static BinaryPredicate<java.lang.Boolean,java.lang.Object>LeftIdentity. PREDICATELeft-identity predicate.static BinaryPredicate<java.lang.Object,java.lang.Boolean>RightIdentity. PREDICATERight-identity predicate.static BinaryPredicate<java.lang.Object,java.lang.Object>IsNotNull. RIGHTRight-handed BinaryPredicate.static BinaryPredicate<java.lang.Object,java.lang.Object>IsNull. RIGHTRight-handed BinaryPredicate.Methods in org.apache.commons.functor.core that return BinaryPredicate Modifier and Type Method Description static <A> BinaryPredicate<A,java.lang.Object>IsNotNull. left()Get a BinaryPredicate that matches if the left argument is not null.static <A> BinaryPredicate<A,java.lang.Object>IsNull. left()Get a BinaryPredicate that matches if the left argument is null.static <R> BinaryPredicate<java.lang.Boolean,R>LeftIdentity. predicate()Get a left-identity BinaryPredicate.static <L> BinaryPredicate<L,java.lang.Boolean>RightIdentity. predicate()Get a typed right-identity BinaryPredicate.static <A> BinaryPredicate<java.lang.Object,A>IsNotNull. right()Get a BinaryPredicate that matches if the right argument is null.static <A> BinaryPredicate<java.lang.Object,A>IsNull. right()Get a BinaryPredicate that matches if the right argument is null. -
Uses of BinaryPredicate in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement BinaryPredicate Modifier and Type Class Description classGeneratorContains<T>Tests whether aGeneratorcontains an element that matches aUnaryPredicate. -
Uses of BinaryPredicate in org.apache.commons.functor.core.collection
Classes in org.apache.commons.functor.core.collection that implement BinaryPredicate Modifier and Type Class Description classIsElementOf<L,R>ABinaryPredicatethat checks to see if the specified object is an element of the specified Collection. -
Uses of BinaryPredicate in org.apache.commons.functor.core.comparator
Classes in org.apache.commons.functor.core.comparator that implement BinaryPredicate Modifier and Type Class Description classIsEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is equal to the right argument under the specifiedComparator.classIsGreaterThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.classIsGreaterThanOrEqual<T>ABinaryPredicatethatteststrueiff the left argument is greater than or equal to the right argument under the specifiedComparator.classIsLessThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.classIsLessThanOrEqual<T>ABinaryPredicatethatteststrueiff the left argument is less than or equal to the right argument under the specifiedComparator.classIsNotEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is not equal to the right argument under the specifiedComparator. -
Uses of BinaryPredicate in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement BinaryPredicate Modifier and Type Class Description (package private) classBaseBinaryPredicateList<L,R>Abstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.classBinaryAnd<L,R>classBinaryNot<L,R>Teststo the logical inverse of some other predicate.classBinaryOr<L,R>classConditionalBinaryPredicate<L,R>ABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classTransposedPredicate<L,R>Transposes (swaps) the arguments to some otherpredicate.classUnaryCompositeBinaryPredicate<L,R>ABinaryPredicatecomposed of one binary predicate, p, and two unary functions, f and g, evaluating the ordered parameters x, y top(f(x),g(y)).private static classUnaryCompositeBinaryPredicate.Helper<G,H,L,R>Internal helper.Fields in org.apache.commons.functor.core.composite declared as BinaryPredicate Modifier and Type Field Description private BinaryPredicate<? super L,? super R>ConditionalBinaryPredicate. elsePredthe predicate executed if the condition is not satisfied.private BinaryPredicate<? super G,? super H>UnaryCompositeBinaryPredicate.Helper. fBinaryPredicate to test output(f), output(g).private BinaryPredicate<? super L,? super R>ConditionalBinaryFunction. ifPredthe condition to be evaluated.private BinaryPredicate<? super L,? super R>ConditionalBinaryPredicate. ifPredthe condition to be evaluated.private BinaryPredicate<? super L,? super R>ConditionalBinaryProcedure. ifPredthe condition to be evaluated.private BinaryPredicate<? super L,? super R>BinaryNot. predicateThe adapted predicate.private BinaryPredicate<? super R,? super L>TransposedPredicate. predicateThe adapted predicate.private BinaryPredicate<? super L,? super R>ConditionalBinaryPredicate. thenPredthe predicate executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type BinaryPredicate Modifier and Type Field Description private java.util.List<BinaryPredicate<? super L,? super R>>BaseBinaryPredicateList. listA list to maintain all the adapted predicates.Methods in org.apache.commons.functor.core.composite that return BinaryPredicate Modifier and Type Method Description static <L,R>
BinaryPredicate<L,R>BinaryNot. not(BinaryPredicate<? super L,? super R> that)Negate a BinaryPredicate.static <L,R>
BinaryPredicate<L,R>Conditional. predicate(BinaryPredicate<? super L,? super R> q, BinaryPredicate<? super L,? super R> r, BinaryPredicate<? super L,? super R> s)Create a conditional BinaryPredicate.Methods in org.apache.commons.functor.core.composite that return types with arguments of type BinaryPredicate Modifier and Type Method Description protected java.util.List<BinaryPredicate<? super L,? super R>>BaseBinaryPredicateList. getBinaryPredicateList()Get the "live" list of containedBinaryPredicateinstances.Methods in org.apache.commons.functor.core.composite with parameters of type BinaryPredicate Modifier and Type Method Description protected voidBaseBinaryPredicateList. addBinaryPredicate(BinaryPredicate<? super L,? super R> p)Add a BinaryPredicate to the list.BinaryAnd<L,R>BinaryAnd. and(BinaryPredicate<? super L,? super R> p)And in a BinaryPredicate.static <L,R,T>
BinaryFunction<L,R,T>Conditional. function(BinaryPredicate<? super L,? super R> q, BinaryFunction<? super L,? super R,? extends T> r, BinaryFunction<? super L,? super R,? extends T> s)Create a conditional BinaryFunction.static <L,R>
BinaryPredicate<L,R>BinaryNot. not(BinaryPredicate<? super L,? super R> that)Negate a BinaryPredicate.BinaryOr<L,R>BinaryOr. or(BinaryPredicate<? super L,? super R> p)Fluently add a BinaryPredicate.static <L,R,G,H>
UnaryCompositeBinaryPredicate<L,R>Composite. predicate(BinaryPredicate<? super G,? super H> p, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a composite BinaryPredicate.static <L,R>
BinaryPredicate<L,R>Conditional. predicate(BinaryPredicate<? super L,? super R> q, BinaryPredicate<? super L,? super R> r, BinaryPredicate<? super L,? super R> s)Create a conditional BinaryPredicate.static <L,R>
BinaryProcedure<L,R>Conditional. procedure(BinaryPredicate<? super L,? super R> q, BinaryProcedure<? super L,? super R> r)Create a guarded BinaryProcedure.static <L,R>
BinaryProcedure<L,R>Conditional. procedure(BinaryPredicate<? super L,? super R> q, BinaryProcedure<? super L,? super R> r, BinaryProcedure<? super L,? super R> s)Create a conditional BinaryProcedure.static <L,R>
TransposedPredicate<R,L>TransposedPredicate. transpose(BinaryPredicate<? super L,? super R> p)Return the transposition ofp.Constructors in org.apache.commons.functor.core.composite with parameters of type BinaryPredicate Constructor Description BaseBinaryPredicateList(BinaryPredicate<? super L,? super R>... predicates)Create a new BaseBinaryPredicateList instance.BinaryAnd(BinaryPredicate<? super L,? super R>... predicates)Create a new BinaryAnd instance.BinaryNot(BinaryPredicate<? super L,? super R> predicate)Create a new BinaryNot.BinaryOr(BinaryPredicate<? super L,? super R>... predicates)Create a new BinaryOr instance.ConditionalBinaryFunction(BinaryPredicate<? super L,? super R> ifPred, BinaryFunction<? super L,? super R,? extends T> thenFunc, BinaryFunction<? super L,? super R,? extends T> elseFunc)Create a new ConditionalBinaryFunction.ConditionalBinaryPredicate(BinaryPredicate<? super L,? super R> ifPred, BinaryPredicate<? super L,? super R> thenPred, BinaryPredicate<? super L,? super R> elsePred)Create a new ConditionalBinaryPredicate.ConditionalBinaryProcedure(BinaryPredicate<? super L,? super R> ifPred, BinaryProcedure<? super L,? super R> thenProc)Create a new ConditionalBinaryProcedure.ConditionalBinaryProcedure(BinaryPredicate<? super L,? super R> ifPred, BinaryProcedure<? super L,? super R> thenProc, BinaryProcedure<? super L,? super R> elseProc)Create a new ConditionalBinaryProcedure.Helper(BinaryPredicate<? super G,? super H> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new Helper.TransposedPredicate(BinaryPredicate<? super R,? super L> predicate)Create a new TransposedPredicate.UnaryCompositeBinaryPredicate(BinaryPredicate<? super G,? super H> f, UnaryFunction<? super L,? extends G> g, UnaryFunction<? super R,? extends H> h)Create a new UnaryCompositeBinaryPredicate.Constructor parameters in org.apache.commons.functor.core.composite with type arguments of type BinaryPredicate Constructor Description BaseBinaryPredicateList(java.lang.Iterable<BinaryPredicate<? super L,? super R>> predicates)Create a new BaseBinaryPredicateList instance.BinaryAnd(java.lang.Iterable<BinaryPredicate<? super L,? super R>> predicates)Create a new BinaryAnd instance.BinaryOr(java.lang.Iterable<BinaryPredicate<? super L,? super R>> predicates)Create a new BinaryOr instance.
-