Uses of Interface
org.apache.commons.functor.UnaryProcedure
-
Packages that use UnaryProcedure 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.org.apache.commons.functor.generator Contains code related to Generators.org.apache.commons.functor.generator.util Contains utility code for Generators. -
-
Uses of UnaryProcedure in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement UnaryProcedure Modifier and Type Class Description classBinaryProcedureUnaryProcedure<A>Adapts a BinaryProcedure as a UnaryProcedure by sending the same argument to both sides of the BinaryProcedure.classLeftBoundProcedure<A>Adapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.classProcedureUnaryProcedure<A>Adapts aProcedureto theUnaryProcedureinterface by ignoring the arguments.classRightBoundProcedure<A>Adapts aBinaryProcedureto theUnaryProcedureinterface using a constant left-side argument.classUnaryFunctionUnaryProcedure<A>Adapts aUnaryFunctionto theUnaryProcedureinterface by ignoring the value returned by the function.Fields in org.apache.commons.functor.adapter declared as UnaryProcedure Modifier and Type Field Description private UnaryProcedure<java.lang.Object>BoundProcedure. procedureTheUnaryProcedureI'm wrapping.private UnaryProcedure<? super R>IgnoreLeftProcedure. procedureTheUnaryProcedureI'm wrapping.private UnaryProcedure<? super L>IgnoreRightProcedure. procedureTheUnaryProcedureI'm wrapping.private UnaryProcedure<? super A>UnaryProcedureUnaryFunction. procedureTheUnaryProcedureI'm wrapping.Methods in org.apache.commons.functor.adapter that return UnaryProcedure Modifier and Type Method Description static <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 UnaryProcedure Modifier and Type Method Description static <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 UnaryProcedure Constructor Description 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 UnaryProcedure Modifier and Type Class Description classNoOpA procedure that does nothing at all.Methods in org.apache.commons.functor.core that return UnaryProcedure Modifier and Type Method Description static <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 UnaryProcedure Modifier and Type Class Description private static classFindWithinGenerator.FindProcedure<T>Helper procedure.private static classFoldLeft.FoldLeftHelper<T>Helper procedure.private static classFoldRight.FoldRightHelper<T>Helper class.private static classGeneratorContains.ContainsProcedure<T>Helper procedure.private static classIndexOfInGenerator.IndexProcedure<T>Helper procedure. -
Uses of UnaryProcedure in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement UnaryProcedure Modifier and Type Class Description classCompositeUnaryProcedure<A>AUnaryProcedurerepresenting the composition ofUnaryFunctions, "chaining" the output of one to the input of another.classConditionalUnaryProcedure<A>AUnaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classUnarySequence<A>Fields in org.apache.commons.functor.core.composite declared as UnaryProcedure Modifier and Type Field Description private 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 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 UnaryProcedure Modifier and Type Field Description private java.util.List<UnaryProcedure<? super A>>UnarySequence. listThe data structure to store the procedure sequence.Methods in org.apache.commons.functor.core.composite that return UnaryProcedure Modifier and Type Method Description 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.Methods in org.apache.commons.functor.core.composite with parameters of type UnaryProcedure Modifier and Type Method Description static <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<A>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 UnaryProcedure Constructor Description CompositeUnaryProcedure(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.Helper(BinaryFunction<? super L,? super R,? extends X> function, UnaryProcedure<? super X> procedure)Create a new Helper.Helper(Function<? extends X> function, UnaryProcedure<? super X> procedure)Create a new Helper.TransformedBinaryProcedure(BinaryFunction<? super L,? super R,? extends X> function, UnaryProcedure<? super X> procedure)Create a new TransformedBinaryProcedure.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 UnaryProcedure Constructor Description UnarySequence(java.lang.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 UnaryProcedure Modifier and Type Method Description voidFilteredGenerator. 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 UnaryProcedure Modifier and Type Method Description voidIntegerRange. run(UnaryProcedure<? super java.lang.Integer> proc)Generators must implement this method.voidLongRange. run(UnaryProcedure<? super java.lang.Long> proc)Generators must implement this method.
-