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.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryFunctionBinaryProcedure<L,R>
Adapts a
BinaryFunction
to the BinaryProcedure
interface by ignoring the value returned
by the function. |
class |
IgnoreLeftProcedure<L,R>
Adapts a
Procedure
to the
BinaryProcedure interface
by ignoring the first binary argument. |
class |
IgnoreRightProcedure<L,R>
Adapts a
Procedure
to the
BinaryProcedure interface
by ignoring the second binary argument. |
Modifier and Type | Method and Description |
---|---|
static <A> Procedure<A> |
BinaryProcedureProcedure.adapt(BinaryProcedure<? super A,? super A> procedure)
Adapt a BinaryProcedure as a Procedure.
|
static <L,R,T> BinaryProcedureBinaryFunction<L,R,T> |
BinaryProcedureBinaryFunction.adapt(BinaryProcedure<? super L,? super R> procedure)
|
static <L,R> LeftBoundProcedure<R> |
LeftBoundProcedure.bind(BinaryProcedure<? super L,? super R> procedure,
L arg)
Get a Procedure from
procedure . |
static <L,R> FullyBoundNullaryProcedure |
FullyBoundNullaryProcedure.bind(BinaryProcedure<? super L,? super R> procedure,
L left,
R right)
Adapt a BinaryNullaryProcedure to the NullaryProcedure interface.
|
static <L,R> RightBoundProcedure<L> |
RightBoundProcedure.bind(BinaryProcedure<? super L,? super R> procedure,
R arg)
Get a Procedure from
procedure . |
Constructor and Description |
---|
BinaryProcedureBinaryFunction(BinaryProcedure<? super L,? super R> procedure)
Create a new BinaryProcedureBinaryFunction.
|
BinaryProcedureProcedure(BinaryProcedure<? super A,? super A> procedure)
Create a new BinaryProcedureProcedure.
|
FullyBoundNullaryProcedure(BinaryProcedure<? super L,? super R> procedure,
L left,
R right)
Create a new FullyBoundNullaryProcedure 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.
|
Modifier and Type | Class and Description |
---|---|
class |
NoOp
A procedure that does nothing at all.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> BinaryProcedure<L,R> |
NoOp.binaryInstance()
Get a typed NoOp
BinaryProcedure . |
Modifier and Type | Class and Description |
---|---|
class |
InPlaceTransform<T>
Implements an in-place transformation of a ListIterator's contents.
|
class |
RemoveMatching<T>
Remove elements from left Iterator that match right Predicate.
|
class |
RetainMatching<T>
Retain elements in left Iterator that match right Predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
BinarySequence<L,R>
|
class |
ConditionalBinaryProcedure<L,R>
A
BinaryProcedure
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
TransformedBinaryProcedure<L,R>
A BinaryProcedure composed of a BinaryFunction whose result is then run through a Procedure.
|
class |
TransposedProcedure<L,R>
Transposes (swaps) the arguments to some other
procedure . |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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.
|
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.
|
Constructor and 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.
|
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 and Description |
---|
BinarySequence(Iterable<BinaryProcedure<? super L,? super R>> procedures)
Create a new BinarySequence instance.
|
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.