Uses of Interface
org.apache.commons.functor.BinaryPredicate
Packages that use BinaryPredicate
Package
Description
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Collection-based functors, algorithms and utilities.Comparator- and
Comparable-based functors, algorithms and utilities.
Functors composed of other functors.
-
Uses of BinaryPredicate in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryPredicateModifier and TypeClassDescriptionfinal classfinal classIgnoreLeftPredicate<L,R> Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the first binary argument.final classIgnoreRightPredicate<L,R> Adapts aUnaryPredicateto theBinaryPredicateinterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryPredicateModifier and TypeFieldDescriptionprivate final BinaryPredicate<? super L, ? super R> BinaryPredicateBinaryFunction.predicateTheBinaryPredicateI'm wrapping.private final BinaryPredicate<? super A, ? super A> BinaryPredicateUnaryPredicate.predicateThe adaptedBinaryPredicate.private final BinaryPredicate<Object, Object> FullyBoundPredicate.predicateTheBinaryPredicateI'm wrapping.private final BinaryPredicate<Object, ? super A> LeftBoundPredicate.predicateTheBinaryPredicateI'm wrapping.private final BinaryPredicate<? super A, Object> RightBoundPredicate.predicateTheBinaryPredicateI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryPredicateModifier and TypeMethodDescriptionstatic <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> FullyBoundPredicate FullyBoundPredicate.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 BinaryPredicateModifierConstructorDescriptionBinaryPredicateBinaryFunction(BinaryPredicate<? super L, ? super R> predicate) Create a new BinaryPredicateBinaryFunction.BinaryPredicateUnaryPredicate(BinaryPredicate<? super A, ? super A> predicate) Create a new BinaryPredicateUnaryPredicate.<L,R> FullyBoundPredicate(BinaryPredicate<? super L, ? super R> predicate, L left, R right) Create a new FullyBoundPredicate instance.<L>LeftBoundPredicate(BinaryPredicate<? super L, ? super A> predicate, L arg) Create a new LeftBoundPredicate.<R>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 BinaryPredicateModifier and TypeClassDescriptionfinal classConstant<T>Evaluatesto constant value.final classIsEqual<L,R> final classIsInstance<T>final classIsNotEqual<L,R> final classIsNotSame<L,R> Teststhe reference (!=) inequality of its arguments.final classIsSame<L,R> Teststhe reference (==) equality of its arguments.final classA predicate that returnstruethe first n times it is invoked.final classA predicate that returnsfalsethe first n times it is invoked, andtruethereafter.Fields in org.apache.commons.functor.core declared as BinaryPredicateModifier and TypeFieldDescriptionstatic final BinaryPredicate<Object, Object> IsNotNull.LEFTLeft-handed BinaryPredicate.static final BinaryPredicate<Object, Object> IsNull.LEFTLeft-handed BinaryPredicate.static final BinaryPredicate<Boolean, Object> LeftIdentity.PREDICATELeft-identity predicate.static final BinaryPredicate<Object, Boolean> RightIdentity.PREDICATERight-identity predicate.static final BinaryPredicate<Object, Object> IsNotNull.RIGHTRight-handed BinaryPredicate.static final BinaryPredicate<Object, Object> IsNull.RIGHTRight-handed BinaryPredicate.Methods in org.apache.commons.functor.core that return BinaryPredicateModifier and TypeMethodDescriptionstatic <A> BinaryPredicate<A, Object> IsNotNull.left()Get a BinaryPredicate that matches if the left argument is not null.static <A> BinaryPredicate<A, Object> IsNull.left()Get a BinaryPredicate that matches if the left argument is null.static <R> BinaryPredicate<Boolean, R> LeftIdentity.predicate()Get a left-identity BinaryPredicate.static <L> BinaryPredicate<L, Boolean> RightIdentity.predicate()Get a typed right-identity BinaryPredicate.static <A> BinaryPredicate<Object, A> IsNotNull.right()Get a BinaryPredicate that matches if the right argument is null.static <A> BinaryPredicate<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 BinaryPredicateModifier and TypeClassDescriptionfinal classTests 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 BinaryPredicateModifier and TypeClassDescriptionfinal 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 BinaryPredicateModifier and TypeClassDescriptionfinal classIsEquivalent<T>ABinaryPredicatethatteststrueiff the left argument is equal to the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is greater than or equal to the right argument under the specifiedComparator.final classIsLessThan<T>ABinaryPredicatethatteststrueiff the left argument is greater than the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff the left argument is less than or equal to the right argument under the specifiedComparator.final classABinaryPredicatethatteststrueiff 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 BinaryPredicateModifier and TypeClassDescription(package private) classAbstract base class forBinaryPredicatescomposed of a list ofBinaryPredicates.final classBinaryAnd<L,R> final classBinaryNot<L,R> Teststo the logical inverse of some other predicate.final classBinaryOr<L,R> final classABinaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).classTransposedPredicate<L,R> Transposes (swaps) the arguments to some otherpredicate.classABinaryPredicatecomposed 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 BinaryPredicateModifier and TypeFieldDescriptionprivate final 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 final BinaryPredicate<? super L, ? super R> ConditionalBinaryFunction.ifPredthe condition to be evaluated.private final BinaryPredicate<? super L, ? super R> ConditionalBinaryPredicate.ifPredthe condition to be evaluated.private final BinaryPredicate<? super L, ? super R> ConditionalBinaryProcedure.ifPredthe condition to be evaluated.private final BinaryPredicate<? super L, ? super R> BinaryNot.predicateThe adapted predicate.private final BinaryPredicate<? super R, ? super L> TransposedPredicate.predicateThe adapted predicate.private final 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 BinaryPredicateModifier and TypeFieldDescriptionprivate final 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 BinaryPredicateModifier and TypeMethodDescriptionstatic <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 BinaryPredicateModifier and TypeMethodDescriptionprotected 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 BinaryPredicateModifier and TypeMethodDescriptionprotected voidBaseBinaryPredicateList.addBinaryPredicate(BinaryPredicate<? super L, ? super R> p) Add a BinaryPredicate to the list.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.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 BinaryPredicateModifierConstructorDescriptionprotectedBaseBinaryPredicateList(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.<G,H> 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 BinaryPredicateModifierConstructorDescriptionprotectedBaseBinaryPredicateList(Iterable<BinaryPredicate<? super L, ? super R>> predicates) Create a new BaseBinaryPredicateList instance.BinaryAnd(Iterable<BinaryPredicate<? super L, ? super R>> predicates) Create a new BinaryAnd instance.BinaryOr(Iterable<BinaryPredicate<? super L, ? super R>> predicates) Create a new BinaryOr instance.