Uses of Interface
org.apache.commons.functor.UnaryProcedure
Packages that use UnaryProcedure
Package
Description
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Functors composed of other functors.
Contains code related to Generators.
Contains utility code for Generators.
-
Uses of UnaryProcedure in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement UnaryProcedureModifier and TypeClassDescriptionfinal classAdapts a BinaryProcedure as a UnaryProcedure by sending the same argument to both sides of the BinaryProcedure.final classAdapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.final classAdapts aProcedureto theUnaryProcedureinterface by ignoring the arguments.final classAdapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.final classAdapts aUnaryFunctionto theUnaryProcedureinterface by ignoring the value returned by the function.Fields in org.apache.commons.functor.adapter declared as UnaryProcedureModifier and TypeFieldDescriptionprivate final UnaryProcedure<Object> BoundProcedure.procedureTheUnaryProcedureI'm wrapping.private final UnaryProcedure<? super R> IgnoreLeftProcedure.procedureTheUnaryProcedureI'm wrapping.private final UnaryProcedure<? super L> IgnoreRightProcedure.procedureTheUnaryProcedureI'm wrapping.private final UnaryProcedure<? super A> UnaryProcedureUnaryFunction.procedureTheUnaryProcedureI'm wrapping.Methods in org.apache.commons.functor.adapter that return UnaryProcedureModifier and TypeMethodDescriptionstatic <A> UnaryProcedure<A> BinaryProcedureUnaryProcedure.adapt(BinaryProcedure<? super A, ? super A> procedure) Adapt a BinaryProcedure as a UnaryProcedure.Methods in org.apache.commons.functor.adapter with parameters of type UnaryProcedureModifier and TypeMethodDescriptionstatic <L,R> IgnoreLeftProcedure <L, R> IgnoreLeftProcedure.adapt(UnaryProcedure<? super R> procedure) Adapt a UnaryProcedure to the BinaryProcedure interface.static <L,R> IgnoreRightProcedure <L, R> IgnoreRightProcedure.adapt(UnaryProcedure<? super L> procedure) Adapt a UnaryProcedure to the BinaryProcedure interface.static <A,T> UnaryProcedureUnaryFunction <A, T> UnaryProcedureUnaryFunction.adapt(UnaryProcedure<? super A> procedure) Adapt a UnaryProcedure to the UnaryFunction interface.static <A> BoundProcedureBoundProcedure.bind(UnaryProcedure<? super A> procedure, A arg) Adapt the given, possibly-null,UnaryProcedureto theProcedureinterface by binding the specifiedObjectas a constant argument.Constructors in org.apache.commons.functor.adapter with parameters of type UnaryProcedureModifierConstructorDescription<A>BoundProcedure(UnaryProcedure<? super A> procedure, A arg) Create a new BoundProcedure instance.IgnoreLeftProcedure(UnaryProcedure<? super R> procedure) Create a new IgnoreLeftProcedure.IgnoreRightProcedure(UnaryProcedure<? super L> procedure) Create a new IgnoreRightProcedure.UnaryProcedureUnaryFunction(UnaryProcedure<? super A> procedure) Create a new UnaryProcedureUnaryFunction. -
Uses of UnaryProcedure in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement UnaryProcedureMethods in org.apache.commons.functor.core that return UnaryProcedureModifier and TypeMethodDescriptionstatic <A> UnaryProcedure<A> NoOp.unaryInstance()Get a typed NoOpUnaryProcedure. -
Uses of UnaryProcedure in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement UnaryProcedureModifier and TypeClassDescriptionprivate static classHelper procedure.private static classHelper procedure.private static classHelper class.private static classHelper procedure.private static classHelper procedure. -
Uses of UnaryProcedure in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement UnaryProcedureModifier and TypeClassDescriptionfinal classAUnaryProcedurerepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.final classAUnaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classFields in org.apache.commons.functor.core.composite declared as UnaryProcedureModifier and TypeFieldDescriptionprivate final UnaryProcedure<? super A> ConditionalUnaryProcedure.elseProcthe procedure executed if the condition is not satisfied.private UnaryProcedure<? super X> TransformedBinaryProcedure.Helper.procedureThe wrapped procedure.private UnaryProcedure<? super X> TransformedProcedure.Helper.procedureThe adapted procedure.private final UnaryProcedure<? super A> ConditionalUnaryProcedure.thenProcthe procedure executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type UnaryProcedureModifier and TypeFieldDescriptionprivate final List<UnaryProcedure<? super A>> UnarySequence.listThe data structure to store the procedure sequence.Methods in org.apache.commons.functor.core.composite that return UnaryProcedureModifier and TypeMethodDescriptionstatic <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.Methods in org.apache.commons.functor.core.composite with parameters of type UnaryProcedureModifier and TypeMethodDescriptionstatic <A> CompositeUnaryProcedure<A> Composite.procedure(UnaryProcedure<? super A> procedure) Create a composite UnaryProcedure.static <A,T> CompositeUnaryProcedure <A> Composite.procedure(UnaryProcedure<? super T> procedure, UnaryFunction<? super A, ? extends T> function) Create a composite UnaryProcedure.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.UnarySequence.then(UnaryProcedure<? super A> p) Fluently add a UnaryProcedure to the sequence.Constructors in org.apache.commons.functor.core.composite with parameters of type UnaryProcedureModifierConstructorDescriptionCompositeUnaryProcedure(UnaryProcedure<? super A> procedure) Create a new CompositeUnaryProcedure.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.privateHelper(BinaryFunction<? super L, ? super R, ? extends X> function, UnaryProcedure<? super X> procedure) Create a new Helper.privateHelper(Function<? extends X> function, UnaryProcedure<? super X> procedure) Create a new Helper.<X>TransformedBinaryProcedure(BinaryFunction<? super L, ? super R, ? extends X> function, UnaryProcedure<? super X> procedure) Create a new TransformedBinaryProcedure.<X>TransformedProcedure(Function<? extends X> function, UnaryProcedure<? super X> procedure) Create a new TransformedProcedure.UnarySequence(UnaryProcedure<? super A>... procedures) Create a new UnarySequence instance.Constructor parameters in org.apache.commons.functor.core.composite with type arguments of type UnaryProcedureModifierConstructorDescriptionUnarySequence(Iterable<UnaryProcedure<? super A>> procedures) Create a new UnarySequence instance. -
Uses of UnaryProcedure in org.apache.commons.functor.generator
Methods in org.apache.commons.functor.generator with parameters of type UnaryProcedureModifier and TypeMethodDescriptionvoidFilteredGenerator.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidGenerateUntil.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidGenerateWhile.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidGenerator.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidIteratorToGeneratorAdapter.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidTransformedGenerator.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidUntilGenerate.run(UnaryProcedure<? super E> proc) Generators must implement this method.voidWhileGenerate.run(UnaryProcedure<? super E> proc) Generators must implement this method. -
Uses of UnaryProcedure in org.apache.commons.functor.generator.util
Methods in org.apache.commons.functor.generator.util with parameters of type UnaryProcedureModifier and TypeMethodDescriptionvoidIntegerRange.run(UnaryProcedure<? super Integer> proc) Generators must implement this method.voidLongRange.run(UnaryProcedure<? super Long> proc) Generators must implement this method.