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 |
BoundNullaryProcedure
Adapts a
Procedure
to the
NullaryProcedure interface
using a constant unary argument. |
class |
FullyBoundNullaryProcedure
Adapts a
BinaryProcedure
to the
NullaryProcedure interface
using a constant left-side argument. |
class |
NullaryFunctionNullaryProcedure
Adapts a
NullaryFunction
to the NullaryProcedure
interface by ignoring the value returned
by the function. |
Modifier and Type | Method and Description |
---|---|
static <A> NullaryProcedureProcedure<A> |
NullaryProcedureProcedure.adapt(NullaryProcedure procedure)
Adapt a NullaryProcedure to the Procedure interface.
|
static <T> NullaryProcedureNullaryFunction<T> |
NullaryProcedureNullaryFunction.adapt(NullaryProcedure procedure)
Adapt a NullaryProcedure as a NullaryFunction.
|
Constructor and Description |
---|
NullaryProcedureNullaryFunction(NullaryProcedure procedure)
Create a new NullaryProcedureNullaryFunction.
|
NullaryProcedureProcedure(NullaryProcedure procedure)
Create a new NullaryProcedureProcedure.
|
Modifier and Type | Class and Description |
---|---|
class |
NoOp
A procedure that does nothing at all.
|
Modifier and Type | Class and Description |
---|---|
class |
DoUntil
Do-until algorithm (test after).
|
class |
DoWhile
Do-while algorithm (test after).
|
class |
UntilDo
Until-do algorithm (test before).
|
class |
WhileDo
While-do algorithm (test before).
|
Constructor and Description |
---|
DoUntil(NullaryProcedure body,
NullaryPredicate test)
Create a new DoUntil.
|
DoWhile(NullaryProcedure body,
NullaryPredicate test)
Create a new DoWhile.
|
UntilDo(NullaryPredicate test,
NullaryProcedure body)
Create a new UntilDo.
|
WhileDo(NullaryPredicate test,
NullaryProcedure body)
Create a new WhileDo.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLoopNullaryProcedure
Abstract base class for
WhileDoNullaryProcedure and DoWhileNullaryProcedure
used to implement loop procedures. |
class |
ConditionalNullaryProcedure
A
NullaryProcedure
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
DoWhileNullaryProcedure
A
NullaryProcedure implementation of a while loop. |
class |
NullarySequence
|
class |
TransformedNullaryProcedure
A NullaryProcedure composed of a NullaryFunction whose result is then run through a Procedure.
|
class |
WhileDoNullaryProcedure
A
NullaryProcedure implementation of a while loop. |
Modifier and Type | Method and Description |
---|---|
protected NullaryProcedure |
AbstractLoopNullaryProcedure.getAction()
Get the action.
|
static NullaryProcedure |
Conditional.procedure(NullaryPredicate q,
NullaryProcedure r)
Create a guarded NullaryProcedure.
|
static NullaryProcedure |
Conditional.procedure(NullaryPredicate q,
NullaryProcedure r,
NullaryProcedure s)
Create a conditional NullaryProcedure.
|
Modifier and Type | Method and Description |
---|---|
static NullaryProcedure |
Conditional.procedure(NullaryPredicate q,
NullaryProcedure r)
Create a guarded NullaryProcedure.
|
static NullaryProcedure |
Conditional.procedure(NullaryPredicate q,
NullaryProcedure r,
NullaryProcedure s)
Create a conditional NullaryProcedure.
|
NullarySequence |
NullarySequence.then(NullaryProcedure p)
Fluently add a NullaryProcedure.
|
Constructor and Description |
---|
AbstractLoopNullaryProcedure(NullaryPredicate condition,
NullaryProcedure action)
Create a new AbstractLoopNullaryProcedure.
|
ConditionalNullaryProcedure(NullaryPredicate ifPred,
NullaryProcedure thenProc)
Create a new ConditionalNullaryProcedure.
|
ConditionalNullaryProcedure(NullaryPredicate ifPred,
NullaryProcedure thenProc,
NullaryProcedure elseProc)
Create a new ConditionalNullaryProcedure.
|
DoWhileNullaryProcedure(NullaryProcedure action,
NullaryPredicate condition)
Create a new DoWhileNullaryProcedure.
|
NullarySequence(NullaryProcedure... procedures)
Create a new NullarySequence instance.
|
WhileDoNullaryProcedure(NullaryPredicate condition,
NullaryProcedure action)
Create a new WhileDoNullaryProcedure.
|
Constructor and Description |
---|
NullarySequence(Iterable<NullaryProcedure> procedures)
Create a new NullarySequence instance.
|
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.