Package | Description |
---|---|
org.apache.commons.functor |
Basic functor interfaces.
|
org.apache.commons.functor.adapter |
Classes that adapt one functor interface to another.
|
org.apache.commons.functor.aggregator |
This package contains the interfaces and utilities needed to implement
an aggregation service.
|
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 | Interface and Description |
---|---|
interface |
NullaryFunction<T>
A functor that takes no arguments and returns a value.
|
interface |
NullaryPredicate
A functor that takes no arguments and returns a
boolean value. |
interface |
NullaryProcedure
A functor that takes no arguments and returns no value.
|
Modifier and Type | Class and Description |
---|---|
class |
BoundNullaryFunction<T>
Adapts a
Function
to the
NullaryFunction interface
using a constant unary argument. |
class |
BoundNullaryPredicate
Adapts a
Predicate
to the
NullaryPredicate interface
using a constant unary argument. |
class |
BoundNullaryProcedure
Adapts a
Procedure
to the
NullaryProcedure interface
using a constant unary argument. |
class |
FullyBoundNullaryFunction<T>
Adapts a
BinaryFunction
to the
NullaryFunction interface
using constant arguments. |
class |
FullyBoundNullaryPredicate
Adapts a
BinaryPredicate
to the
NullaryPredicate interface
using a constant left-side argument. |
class |
FullyBoundNullaryProcedure
Adapts a
BinaryProcedure
to the
NullaryProcedure interface
using a constant left-side argument. |
class |
NullaryFunctionNullaryPredicate
|
class |
NullaryFunctionNullaryProcedure
Adapts a
NullaryFunction
to the NullaryProcedure
interface by ignoring the value returned
by the function. |
class |
NullaryPredicateNullaryFunction
Adapts a
Predicate
to the
NullaryFunction interface. |
class |
NullaryProcedureNullaryFunction<T>
|
Modifier and Type | Interface and Description |
---|---|
interface |
Aggregator<T>
Interface which offers a means of "aggregating" data.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractListBackedAggregator<T>
An aggregator which stores the data series in a List.
|
class |
AbstractNoStoreAggregator<T>
An implementation of an aggregator which doesn't store the data series but
instead it processes the data on the fly, as it arrives in
AbstractTimedAggregator.add(Object) and stores the result after each addition. |
class |
AbstractTimedAggregator<T>
An aggregator which automatically resets the aggregated data at regular
intervals and sends a notification when it is about to do so, so listeners
can decide to gather the information before it is being reset (and log it
etc).
|
class |
ArrayListBackedAggregator<T>
Implementation of an aggregator which stores the data series in an
ArrayList . |
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 |
NoOp
A procedure that does nothing at all.
|
class |
Offset
A predicate that returns
false
the first n times it is invoked, and
true thereafter. |
Modifier and Type | Class and Description |
---|---|
class |
DoUntil
Do-until algorithm (test after).
|
class |
DoWhile
Do-while algorithm (test after).
|
class |
RecursiveEvaluation
Tail recursion for
functions . |
class |
UntilDo
Until-do algorithm (test before).
|
class |
WhileDo
While-do algorithm (test before).
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLoopNullaryProcedure
Abstract base class for
WhileDoNullaryProcedure and DoWhileNullaryProcedure
used to implement loop procedures. |
class |
ConditionalNullaryFunction<T>
A
NullaryFunction
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalNullaryPredicate
A
NullaryPredicate
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalNullaryProcedure
A
NullaryProcedure
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
DoWhileNullaryProcedure
A
NullaryProcedure implementation of a while loop. |
class |
NullaryAnd
|
class |
NullaryNot
Tests to the logical inverse
of some other predicate. |
class |
NullaryOr
|
class |
NullarySequence
|
class |
TransformedNullaryFunction<T>
A NullaryFunction whose result is then run through a Function.
|
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. |
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.