Uses of Interface
org.apache.commons.functor.UnaryPredicate
Packages that use UnaryPredicate
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.
Contains code related to Generators.
-
Uses of UnaryPredicate in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement UnaryPredicateModifier and TypeClassDescriptionfinal classAdapts a BinaryPredicate as a UnaryPredicate by sending the same argument to both sides of the BinaryPredicate.final classAdapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.final classAdapts aPredicateto theUnaryPredicateinterface by ignoring the given argument.final classAdapts aBinaryPredicateto theUnaryPredicateinterface using a constant left-side argument.final classFields in org.apache.commons.functor.adapter declared as UnaryPredicateModifier and TypeFieldDescriptionprivate final UnaryPredicate<Object> BoundPredicate.predicateTheUnaryPredicateI'm wrapping.private final UnaryPredicate<? super R> IgnoreLeftPredicate.predicateTheUnaryPredicateI'm wrapping.private final UnaryPredicate<? super L> IgnoreRightPredicate.predicateTheUnaryPredicateI'm wrapping.private final UnaryPredicate<? super A> UnaryPredicateUnaryFunction.predicateTheUnaryPredicateI'm wrapping.Methods in org.apache.commons.functor.adapter that return UnaryPredicateModifier and TypeMethodDescriptionstatic <A> UnaryPredicate<A> BinaryPredicateUnaryPredicate.adapt(BinaryPredicate<? super A, ? super A> predicate) Adapt a BinaryFunction as a UnaryFunction.Methods in org.apache.commons.functor.adapter with parameters of type UnaryPredicateModifier and TypeMethodDescriptionstatic <L,R> IgnoreLeftPredicate <L, R> IgnoreLeftPredicate.adapt(UnaryPredicate<? super R> predicate) Adapt a UnaryPredicate to an IgnoreLeftPredicate.static <L,R> IgnoreRightPredicate <L, R> IgnoreRightPredicate.adapt(UnaryPredicate<? super L> predicate) Adapt a UnaryPredicate as an IgnoreRightPredicate.static <A> UnaryPredicateUnaryFunction<A> UnaryPredicateUnaryFunction.adapt(UnaryPredicate<? super A> predicate) Adapt a UnaryPredicate to the UnaryFunction interface.static <A> BoundPredicateBoundPredicate.bind(UnaryPredicate<? super A> predicate, A arg) Adapt the given, possibly-null,UnaryPredicateto thePredicateinterface by binding the specifiedObjectas a constant argument.Constructors in org.apache.commons.functor.adapter with parameters of type UnaryPredicateModifierConstructorDescription<A>BoundPredicate(UnaryPredicate<? super A> predicate, A arg) Create a new BoundPredicate instance.IgnoreLeftPredicate(UnaryPredicate<? super R> predicate) Create a new IgnoreLeftPredicate.IgnoreRightPredicate(UnaryPredicate<? super L> predicate) Create a new IgnoreRightPredicate.UnaryPredicateUnaryFunction(UnaryPredicate<? super A> predicate) Create a new UnaryPredicateUnaryFunction. -
Uses of UnaryPredicate in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement UnaryPredicateModifier and TypeClassDescriptionfinal classConstant<T>Evaluatesto constant value.final classIdentity<T>Evaluatesto its input argument.final classIsNotNull<T>final classIsNull<A>final classA predicate that returnstruethe first n times it is invoked.final classA predicate that returnsfalsethe first n times it is invoked, andtruethereafter.Methods in org.apache.commons.functor.core that return UnaryPredicateModifier and TypeMethodDescriptionstatic <L,R> UnaryPredicate <L> IsNotSame.as(R object) Get an IsNotSame UnaryPredicate.static <L,R> UnaryPredicate <L> IsSame.as(R object) Get an IsSame UnaryPredicate.static <T> UnaryPredicate<T> Get an IsInstanceOf UnaryPredicate.static <L,R> UnaryPredicate <L> IsEqual.to(R object) Get an IsEqual UnaryPredicate.static <L,R> UnaryPredicate <L> IsNotEqual.to(R object) Get an IsNotEqual UnaryPredicate. -
Uses of UnaryPredicate in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement interfaces with type arguments of type UnaryPredicateModifier and TypeClassDescriptionfinal classReturn the first Object in aGeneratormatching aUnaryPredicate.final classTests whether aGeneratorcontains an element that matches aUnaryPredicate.final classReturn the index of the first Object in aGeneratormatching aUnaryPredicate, or -1 if not found.final classRemove elements from left Iterator that match right UnaryPredicate.final classRetain elements in left Iterator that match right UnaryPredicate.Fields in org.apache.commons.functor.core.algorithm declared as UnaryPredicateModifier and TypeFieldDescriptionprivate UnaryPredicate<? super T> FindWithinGenerator.FindProcedure.predThe adapted predicate.private final UnaryPredicate<? super T> GeneratorContains.ContainsProcedure.predThe wrapped predicate.private final UnaryPredicate<? super T> IndexOfInGenerator.IndexProcedure.predThe wrapped predicate.Methods in org.apache.commons.functor.core.algorithm with parameters of type UnaryPredicateModifier and TypeMethodDescriptionFindWithinGenerator.evaluate(Generator<? extends E> left, UnaryPredicate<? super E> right) Evaluate this function.IndexOfInGenerator.evaluate(Generator<? extends T> left, UnaryPredicate<? super T> right) Evaluate this function.voidRemoveMatching.run(Iterator<? extends T> left, UnaryPredicate<? super T> right) Execute this procedure.voidRetainMatching.run(Iterator<? extends T> left, UnaryPredicate<? super T> right) Execute this procedure.booleanGeneratorContains.test(Generator<? extends T> left, UnaryPredicate<? super T> right) Evaluate this predicate.Constructors in org.apache.commons.functor.core.algorithm with parameters of type UnaryPredicateModifierConstructorDescriptionContainsProcedure(UnaryPredicate<? super T> pred) Create a new ContainsProcedure.FindProcedure(UnaryPredicate<? super T> pred) Create a new FindProcedure.(package private)IndexProcedure(Generator<? extends T> generator, UnaryPredicate<? super T> pred) Create a new IndexProcedure. -
Uses of UnaryPredicate in org.apache.commons.functor.core.collection
Classes in org.apache.commons.functor.core.collection that implement UnaryPredicateFields in org.apache.commons.functor.core.collection declared as UnaryPredicateModifier and TypeFieldDescriptionprivate final UnaryPredicate<? super T> FilteredIterator.predicateThe predicate used to test this Iterator elements.Methods in org.apache.commons.functor.core.collection that return UnaryPredicateModifier and TypeMethodDescriptionstatic <A> UnaryPredicate<A> Get an IsElementOf(collection|array) UnaryPredicate.Methods in org.apache.commons.functor.core.collection with parameters of type UnaryPredicateModifier and TypeMethodDescriptionstatic <T> Iterator<T> FilteredIterator.filter(Iterator<? extends T> iter, UnaryPredicate<? super T> pred) Get a filtered Iterator instance applyingpredtoiter.FilteredIterable.retain(UnaryPredicate<? super T> predicate) Retain only elements matchingpredicate.Constructors in org.apache.commons.functor.core.collection with parameters of type UnaryPredicateModifierConstructorDescriptionFilteredIterator(Iterator<? extends T> iterator, UnaryPredicate<? super T> predicate) Create a new FilteredIterator. -
Uses of UnaryPredicate in org.apache.commons.functor.core.comparator
Classes in org.apache.commons.functor.core.comparator that implement UnaryPredicateModifier and TypeClassDescriptionclassIsWithinRange<A extends Comparable<A>>AUnaryPredicatethat tests whether aComparableobject is within a range.Methods in org.apache.commons.functor.core.comparator that return UnaryPredicateModifier and TypeMethodDescriptionstatic <T extends Comparable<?>>
UnaryPredicate<T> IsEquivalent.instance(T right) Get an IsEquivalent instance that always compares toarg.static <T extends Comparable<?>>
UnaryPredicate<T> IsGreaterThan.instance(T right) Get an IsGreaterThan UnaryPredicate.static <T extends Comparable<?>>
UnaryPredicate<T> IsGreaterThanOrEqual.instance(T right) Get an IsGreaterThanOrEqual UnaryPredicate.static <T extends Comparable<?>>
UnaryPredicate<T> IsLessThan.instance(T right) Get an IsLessThan UnaryPredicate.static <T extends Comparable<?>>
UnaryPredicate<T> IsLessThanOrEqual.instance(T right) Get an IsLessThanOrEqual UnaryPredicate.static <T extends Comparable<?>>
UnaryPredicate<T> IsNotEquivalent.instance(T right) Get an IsNotEquivalent UnaryPredicate. -
Uses of UnaryPredicate in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement UnaryPredicateModifier and TypeClassDescription(package private) classAbstract base class forUnaryPredicatescomposed of a list ofUnaryPredicates.final classAUnaryPredicaterepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.final classAUnaryPredicatesimiliar to Java's "ternary" or "conditional" operator (? :).final classUnaryAnd<A>final classUnaryNot<A>Teststo the logical inverse of some other predicate.final classUnaryOr<A>Fields in org.apache.commons.functor.core.composite declared as UnaryPredicateModifier and TypeFieldDescriptionprivate final UnaryPredicate<? super A> ConditionalUnaryPredicate.elsePredthe predicate executed if the condition is not satisfied.private final UnaryPredicate<? super A> ConditionalUnaryFunction.ifPredthe condition to be evaluated.private final UnaryPredicate<? super A> ConditionalUnaryPredicate.ifPredthe condition to be evaluated.private final UnaryPredicate<? super A> ConditionalUnaryProcedure.ifPredthe condition to be evaluated.private final UnaryPredicate<? super A> UnaryNot.predicateThe adapted predicate.private final UnaryPredicate<? super A> ConditionalUnaryPredicate.thenPredthe predicate executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type UnaryPredicateModifier and TypeFieldDescriptionprivate final List<UnaryPredicate<? super A>> BaseUnaryPredicateList.listA list where storing the adapted predicates.Methods in org.apache.commons.functor.core.composite that return UnaryPredicateModifier and TypeMethodDescriptionstatic <A> UnaryPredicate<A> UnaryNot.not(UnaryPredicate<? super A> pred) Invert a UnaryPredicate.static <A> UnaryPredicate<A> Conditional.predicate(UnaryPredicate<? super A> q, UnaryPredicate<? super A> r, UnaryPredicate<? super A> s) Create a conditional UnaryPredicate.Methods in org.apache.commons.functor.core.composite that return types with arguments of type UnaryPredicateModifier and TypeMethodDescriptionprotected List<UnaryPredicate<? super A>> BaseUnaryPredicateList.getUnaryPredicateList()Get the "live" list of containedUnaryPredicates.Methods in org.apache.commons.functor.core.composite with parameters of type UnaryPredicateModifier and TypeMethodDescriptionprotected voidBaseUnaryPredicateList.addUnaryPredicate(UnaryPredicate<? super A> p) Add a UnaryPredicate to the list.UnaryAnd.and(UnaryPredicate<? super A> p) Fluently add a UnaryPredicate.static <A,T> UnaryFunction <A, T> Conditional.function(UnaryPredicate<? super A> q, UnaryFunction<? super A, ? extends T> r, UnaryFunction<? super A, ? extends T> s) Create a conditional UnaryFunction.static <A> UnaryPredicate<A> UnaryNot.not(UnaryPredicate<? super A> pred) Invert a UnaryPredicate.UnaryOr.or(UnaryPredicate<? super A> p) Fluently add a Predicate.static <A> CompositeUnaryPredicate<A> Composite.predicate(UnaryPredicate<? super A> pred) Create a composite UnaryPredicate.static <A,T> CompositeUnaryPredicate <A> Composite.predicate(UnaryPredicate<? super T> predicate, UnaryFunction<? super A, ? extends T> function) Create a composite UnaryPredicate.static <A> UnaryPredicate<A> Conditional.predicate(UnaryPredicate<? super A> q, UnaryPredicate<? super A> r, UnaryPredicate<? super A> s) Create a conditional UnaryPredicate.static <A> UnaryProcedure<A> Conditional.procedure(UnaryPredicate<? super A> q, UnaryProcedure<? super A> r) Create a guarded UnaryProcedure.static <A> UnaryProcedure<A> Conditional.procedure(UnaryPredicate<? super A> q, UnaryProcedure<? super A> r, UnaryProcedure<? super A> s) Create a conditional UnaryProcedure.Constructors in org.apache.commons.functor.core.composite with parameters of type UnaryPredicateModifierConstructorDescriptionprotectedBaseUnaryPredicateList(UnaryPredicate<? super A>... predicates) Create a new BaseUnaryPredicateList instance.CompositeUnaryPredicate(UnaryPredicate<? super A> predicate) Create a new CompositeUnaryPredicate.ConditionalUnaryFunction(UnaryPredicate<? super A> ifPred, UnaryFunction<? super A, ? extends T> thenFunc, UnaryFunction<? super A, ? extends T> elseFunc) Create a new ConditionalUnaryFunction.ConditionalUnaryPredicate(UnaryPredicate<? super A> ifPred, UnaryPredicate<? super A> thenPred, UnaryPredicate<? super A> elsePred) Create a new ConditionalUnaryPredicate.ConditionalUnaryProcedure(UnaryPredicate<? super A> ifPred, UnaryProcedure<? super A> thenProc) Create a new ConditionalUnaryProcedure.ConditionalUnaryProcedure(UnaryPredicate<? super A> ifPred, UnaryProcedure<? super A> thenProc, UnaryProcedure<? super A> elseProc) Create a new ConditionalUnaryProcedure.UnaryAnd(UnaryPredicate<? super A>... predicates) Create a new UnaryAnd instance.UnaryNot(UnaryPredicate<? super A> predicate) Create a new UnaryNot.UnaryOr(UnaryPredicate<? super A>... predicates) Create a new UnaryOr instance.Constructor parameters in org.apache.commons.functor.core.composite with type arguments of type UnaryPredicateModifierConstructorDescriptionprotectedBaseUnaryPredicateList(Iterable<UnaryPredicate<? super A>> predicates) Create a new BaseUnaryPredicateList instance.UnaryAnd(Iterable<UnaryPredicate<? super A>> predicates) Create a new UnaryAnd instance.UnaryOr(Iterable<UnaryPredicate<? super A>> predicates) Create a new UnaryOr instance. -
Uses of UnaryPredicate in org.apache.commons.functor.generator
Fields in org.apache.commons.functor.generator declared as UnaryPredicateModifier and TypeFieldDescriptionprivate final UnaryPredicate<? super E> FilteredGenerator.predThe wrapped generator.private final UnaryPredicate<? super E> GenerateUntil.testThe condition has to verified in order to execute the generation.private final UnaryPredicate<? super E> GenerateWhile.testThe condition has to verified in order to execute the generation.private final UnaryPredicate<? super E> UntilGenerate.testThe condition has to verified in order to execute the generation.private final UnaryPredicate<? super E> WhileGenerate.testThe condition has to verified in order to execute the generation.Constructors in org.apache.commons.functor.generator with parameters of type UnaryPredicateModifierConstructorDescriptionFilteredGenerator(Generator<? extends E> wrapped, UnaryPredicate<? super E> pred) Create a new FilteredGenerator.GenerateUntil(Generator<? extends E> wrapped, UnaryPredicate<? super E> test) Create a new GenerateUntil.GenerateWhile(Generator<? extends E> wrapped, UnaryPredicate<? super E> test) Create a new GenerateWhile.UntilGenerate(UnaryPredicate<? super E> test, Generator<? extends E> wrapped) Create a new UntilGenerate.WhileGenerate(UnaryPredicate<? super E> test, Generator<? extends E> wrapped) Create a new WhileGenerate.