Uses of Interface
org.apache.commons.functor.BinaryProcedure
-
Packages that use BinaryProcedure 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. -
-
Uses of BinaryProcedure in org.apache.commons.functor.adapter
Classes in org.apache.commons.functor.adapter that implement BinaryProcedure Modifier and Type Class Description classBinaryFunctionBinaryProcedure<L,R>Adapts aBinaryFunctionto theBinaryProcedureinterface by ignoring the value returned by the function.classIgnoreLeftProcedure<L,R>Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the first binary argument.classIgnoreRightProcedure<L,R>Adapts aUnaryProcedureto theBinaryProcedureinterface by ignoring the second binary argument.Fields in org.apache.commons.functor.adapter declared as BinaryProcedure Modifier and Type Field Description private BinaryProcedure<? super L,? super R>BinaryProcedureBinaryFunction. procedureTheBinaryProcedureI'm wrapping.private BinaryProcedure<? super A,? super A>BinaryProcedureUnaryProcedure. procedureThe adapted procedure.private BinaryProcedure<java.lang.Object,java.lang.Object>FullyBoundProcedure. procedureTheBinaryProcedureI'm wrapping.private BinaryProcedure<java.lang.Object,? super A>LeftBoundProcedure. procedureTheBinaryProcedureI'm wrapping.private BinaryProcedure<? super A,java.lang.Object>RightBoundProcedure. procedureTheBinaryProcedureI'm wrapping.Methods in org.apache.commons.functor.adapter with parameters of type BinaryProcedure Modifier and Type Method Description static <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>
FullyBoundProcedureFullyBoundProcedure. 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 BinaryProcedure Constructor Description BinaryProcedureBinaryFunction(BinaryProcedure<? super L,? super R> procedure)Create a new BinaryProcedureBinaryFunction.BinaryProcedureUnaryProcedure(BinaryProcedure<? super A,? super A> procedure)Create a new BinaryProcedureUnaryProcedure.FullyBoundProcedure(BinaryProcedure<? super L,? super R> procedure, L left, R right)Create a new FullyBoundProcedure instance.LeftBoundProcedure(BinaryProcedure<? super L,? super A> procedure, L arg)Create a new LeftBoundProcedure.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 BinaryProcedure Modifier and Type Class Description classNoOpA procedure that does nothing at all.Methods in org.apache.commons.functor.core that return BinaryProcedure Modifier and Type Method Description static <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 BinaryProcedure Modifier and Type Class Description classInPlaceTransform<T>Implements an in-place transformation of a ListIterator's contents.classRemoveMatching<T>Remove elements from left Iterator that match right UnaryPredicate.classRetainMatching<T>Retain 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 BinaryProcedure Modifier and Type Class Description classBinarySequence<L,R>classConditionalBinaryProcedure<L,R>ABinaryProceduresimiliar to Java's "ternary" or "conditional" operator (? :).classTransformedBinaryProcedure<L,R>A BinaryProcedure composed of a BinaryFunction whose result is then run through a UnaryProcedure.private static classTransformedBinaryProcedure.Helper<X,L,R>Type-remembering helper.classTransposedProcedure<L,R>Transposes (swaps) the arguments to some otherprocedure.Fields in org.apache.commons.functor.core.composite declared as BinaryProcedure Modifier and Type Field Description private BinaryProcedure<? super L,? super R>ConditionalBinaryProcedure. elseProcthe predicate executed if the condition is not satisfied.private BinaryProcedure<? super R,? super L>TransposedProcedure. procedureThe adapted procedure.private 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 BinaryProcedure Modifier and Type Field Description private java.util.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 BinaryProcedure Modifier and Type Method Description 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.Methods in org.apache.commons.functor.core.composite with parameters of type BinaryProcedure Modifier and Type Method Description 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.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 BinaryProcedure Constructor Description BinarySequence(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 BinaryProcedure Constructor Description BinarySequence(java.lang.Iterable<BinaryProcedure<? super L,? super R>> procedures)Create a new BinarySequence instance.
-