Uses of Interface
org.apache.commons.functor.BinaryProcedure
Packages that use BinaryProcedure
Package
Description
Classes that adapt one functor interface to another.
Commonly used functor implementations.
Various algorithm-esque functors.
Functors composed of other functors.
-
Uses of BinaryProcedure in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryProcedureModifier and TypeClassDescriptionfinal classAdapts aBinaryFunctionto theBinaryProcedureinterface by ignoring the value returned by the function.final classIgnoreLeftProcedure<L,R> Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the first binary argument.final classIgnoreRightProcedure<L,R> Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryProcedureModifier and TypeFieldDescriptionprivate final BinaryProcedure<? super L, ? super R> BinaryProcedureBinaryFunction.procedureTheBinaryProcedureI'm wrapping.private final BinaryProcedure<? super A, ? super A> BinaryProcedureUnaryProcedure.procedureThe adapted procedure.private final BinaryProcedure<Object, Object> FullyBoundProcedure.procedureTheBinaryProcedureI'm wrapping.private final BinaryProcedure<Object, ? super A> LeftBoundProcedure.procedureTheBinaryProcedureI'm wrapping.private final BinaryProcedure<? super A, Object> RightBoundProcedure.procedureTheBinaryProcedureI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryProcedureModifier and TypeMethodDescriptionstatic <L,R, T> BinaryProcedureBinaryFunction <L, R, T> BinaryProcedureBinaryFunction.adapt(BinaryProcedure<? super L, ? super R> procedure) static <A> UnaryProcedure<A> BinaryProcedureUnaryProcedure.adapt(BinaryProcedure<? super A, ? super A> procedure) Adapt a BinaryProcedure as a UnaryProcedure.static <L,R> FullyBoundProcedure FullyBoundProcedure.bind(BinaryProcedure<? super L, ? super R> procedure, L left, R right) Adapt a BinaryProcedure to the Procedure interface.static <L,R> LeftBoundProcedure <R> LeftBoundProcedure.bind(BinaryProcedure<? super L, ? super R> procedure, L arg) Get a UnaryProcedure fromprocedure.static <L,R> RightBoundProcedure <L> RightBoundProcedure.bind(BinaryProcedure<? super L, ? super R> procedure, R arg) Get a UnaryProcedure fromprocedure.Constructors in org.apache.commons.functor.adapter with parameters of type BinaryProcedureModifierConstructorDescriptionBinaryProcedureBinaryFunction(BinaryProcedure<? super L, ? super R> procedure) Create a new BinaryProcedureBinaryFunction.BinaryProcedureUnaryProcedure(BinaryProcedure<? super A, ? super A> procedure) Create a new BinaryProcedureUnaryProcedure.<L,R> FullyBoundProcedure(BinaryProcedure<? super L, ? super R> procedure, L left, R right) Create a new FullyBoundProcedure instance.<L>LeftBoundProcedure(BinaryProcedure<? super L, ? super A> procedure, L arg) Create a new LeftBoundProcedure.<R>RightBoundProcedure(BinaryProcedure<? super A, ? super R> procedure, R arg) Create a new RightBoundProcedure. -
Uses of BinaryProcedure in org.apache.commons.functor.core
Classes in org.apache.commons.functor.core that implement BinaryProcedureMethods in org.apache.commons.functor.core that return BinaryProcedureModifier and TypeMethodDescriptionstatic <L,R> BinaryProcedure <L, R> NoOp.binaryInstance()Get a typed NoOpBinaryProcedure. -
Uses of BinaryProcedure in org.apache.commons.functor.core.algorithm
Classes in org.apache.commons.functor.core.algorithm that implement BinaryProcedureModifier and TypeClassDescriptionfinal classImplements an in-place transformation of a ListIterator's contents.final classRemove elements from left Iterator that match right UnaryPredicate.final classRetain elements in left Iterator that match right UnaryPredicate. -
Uses of BinaryProcedure in org.apache.commons.functor.core.composite
Classes in org.apache.commons.functor.core.composite that implement BinaryProcedureModifier and TypeClassDescriptionclassBinarySequence<L,R> final classABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classA BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.private static final classType-remembering helper.classTransposedProcedure<L,R> Transposes (swaps) the arguments to some otherprocedure.Fields in org.apache.commons.functor.core.composite declared as BinaryProcedureModifier and TypeFieldDescriptionprivate final BinaryProcedure<? super L, ? super R> ConditionalBinaryProcedure.elseProcthe predicate executed if the condition is not satisfied.private final BinaryProcedure<? super R, ? super L> TransposedProcedure.procedureThe adapted procedure.private final BinaryProcedure<? super L, ? super R> ConditionalBinaryProcedure.thenProcthe predicate executed if the condition is satisfied.Fields in org.apache.commons.functor.core.composite with type parameters of type BinaryProcedureModifier and TypeFieldDescriptionprivate final List<BinaryProcedure<? super L, ? super R>> BinarySequence.listA list where storing all the procedures references.Methods in org.apache.commons.functor.core.composite that return BinaryProcedureModifier and TypeMethodDescriptionstatic <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.Methods in org.apache.commons.functor.core.composite with parameters of type BinaryProcedureModifier and TypeMethodDescriptionstatic <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.final BinarySequence<L, R> BinarySequence.then(BinaryProcedure<? super L, ? super R> p) Fluently add a BinaryProcedure.static <L,R> TransposedProcedure <R, L> TransposedProcedure.transpose(BinaryProcedure<? super L, ? super R> p) Transpose a BinaryProcedure.Constructors in org.apache.commons.functor.core.composite with parameters of type BinaryProcedureModifierConstructorDescriptionBinarySequence(BinaryProcedure<? super L, ? super R>... procedures) Create a new BinarySequence instance.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.TransposedProcedure(BinaryProcedure<? super R, ? super L> procedure) Create a new TransposedProcedure.Constructor parameters in org.apache.commons.functor.core.composite with type arguments of type BinaryProcedureModifierConstructorDescriptionBinarySequence(Iterable<BinaryProcedure<? super L, ? super R>> procedures) Create a new BinarySequence instance.