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 |
BoundNullaryPredicate
Adapts a
Predicate
to the
NullaryPredicate interface
using a constant unary argument. |
class |
FullyBoundNullaryPredicate
Adapts a
BinaryPredicate
to the
NullaryPredicate interface
using a constant left-side argument. |
class |
NullaryFunctionNullaryPredicate
|
Modifier and Type | Method and Description |
---|---|
static NullaryPredicateNullaryFunction |
NullaryPredicateNullaryFunction.adapt(NullaryPredicate predicate)
Adapt a NullaryPredicate to the NullaryFunction interface.
|
static <A> NullaryPredicatePredicate<A> |
NullaryPredicatePredicate.adapt(NullaryPredicate predicate)
Adapt a NullaryPredicate to the Predicate interface.
|
Constructor and Description |
---|
NullaryPredicateNullaryFunction(NullaryPredicate predicate)
Create a new NullaryPredicateNullaryFunction.
|
NullaryPredicatePredicate(NullaryPredicate predicate)
Create a new NullaryPredicatePredicate.
|
Modifier and Type | Class and Description |
---|---|
class |
Constant<T>
Evaluates to constant value. |
class |
Limit
A predicate that returns
true
the first n times it is invoked, and
false thereafter. |
class |
Offset
A predicate that returns
false
the first n times it is invoked, and
true thereafter. |
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 |
ConditionalNullaryPredicate
A
NullaryPredicate
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
NullaryAnd
|
class |
NullaryNot
Tests to the logical inverse
of some other predicate. |
class |
NullaryOr
|
Modifier and Type | Method and Description |
---|---|
protected NullaryPredicate |
AbstractLoopNullaryProcedure.getCondition()
Get the condition.
|
static NullaryPredicate |
NullaryNot.not(NullaryPredicate that)
Get a NullaryNot instance for
that . |
static NullaryPredicate |
Conditional.predicate(NullaryPredicate q,
NullaryPredicate r,
NullaryPredicate s)
Create a conditional NullaryPredicate.
|
Modifier and Type | Method and Description |
---|---|
NullaryAnd |
NullaryAnd.and(NullaryPredicate p)
Add a Predicate.
|
static <T> NullaryFunction<T> |
Conditional.function(NullaryPredicate q,
NullaryFunction<? extends T> r,
NullaryFunction<? extends T> s)
Create a conditional NullaryFunction.
|
static NullaryPredicate |
NullaryNot.not(NullaryPredicate that)
Get a NullaryNot instance for
that . |
NullaryOr |
NullaryOr.or(NullaryPredicate p)
Fluently add a NullaryPredicate.
|
static NullaryPredicate |
Conditional.predicate(NullaryPredicate q,
NullaryPredicate r,
NullaryPredicate s)
Create a conditional NullaryPredicate.
|
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.
|
Constructor and Description |
---|
AbstractLoopNullaryProcedure(NullaryPredicate condition,
NullaryProcedure action)
Create a new AbstractLoopNullaryProcedure.
|
ConditionalNullaryFunction(NullaryPredicate ifPred,
NullaryFunction<? extends T> thenFunc,
NullaryFunction<? extends T> elseFunc)
Create a new ConditionalNullaryFunction.
|
ConditionalNullaryPredicate(NullaryPredicate ifPred,
NullaryPredicate thenPred,
NullaryPredicate elsePred)
Create a new ConditionalNullaryPredicate.
|
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.
|
NullaryAnd(NullaryPredicate... predicates)
Create a new NullaryAnd instance.
|
NullaryNot(NullaryPredicate predicate)
Create a new NullaryNot.
|
NullaryOr(NullaryPredicate... predicates)
Create a new NullaryOr instance.
|
WhileDoNullaryProcedure(NullaryPredicate condition,
NullaryProcedure action)
Create a new WhileDoNullaryProcedure.
|
Constructor and Description |
---|
NullaryAnd(Iterable<NullaryPredicate> predicates)
Create a new NullaryAnd instance.
|
NullaryOr(Iterable<NullaryPredicate> predicates)
Create a new NullaryOr instance.
|
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.