| 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 |
Function<T>
A functor that takes no arguments and returns a value.
|
interface |
Predicate
A functor that takes no arguments and returns a
boolean value. |
interface |
Procedure
A functor that takes no arguments and returns no value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BoundFunction<T>
Adapts a
UnaryFunction
to the
Function interface
using a constant unary argument. |
class |
BoundPredicate
Adapts a
UnaryPredicate
to the
Predicate interface
using a constant unary argument. |
class |
BoundProcedure
Adapts a
UnaryProcedure
to the
Procedure interface
using a constant unary argument. |
class |
FullyBoundFunction<T>
Adapts a
BinaryFunction
to the
Function interface
using constant arguments. |
class |
FullyBoundPredicate
Adapts a
BinaryPredicate
to the
UnaryPredicate interface
using a constant left-side argument. |
class |
FullyBoundProcedure
Adapts a
BinaryProcedure
to the
Procedure interface
using a constant left-side argument. |
class |
FunctionPredicate
|
class |
FunctionProcedure
|
class |
PredicateFunction
|
class |
ProcedureFunction<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 |
AbstractLoopProcedure
Abstract base class for
WhileDoProcedure and DoWhileProcedure
used to implement loop procedures. |
class |
And
|
class |
ConditionalFunction<T>
A
Function
similiar to Java's "ternary"
or "conditional" operator (? :). |
class |
ConditionalPredicate
A
Predicate
similiar to Java's "ternary"
or "conditional" operator (? :). |
class |
ConditionalProcedure
A
Procedure
similiar to Java's "ternary"
or "conditional" operator (? :). |
class |
DoWhileProcedure
A
Procedure implementation of a while loop. |
class |
Not
Tests to the logical inverse
of some other predicate. |
class |
Or
|
class |
Sequence
|
class |
TransformedFunction<T>
A Function whose result is then run through a UnaryFunction.
|
class |
TransformedProcedure
A Procedure composed of a Function whose result is then run through a UnaryProcedure.
|
class |
WhileDoProcedure
A
Procedure implementation of a while loop. |
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.