Package | Description |
---|---|
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 | Class and Description |
---|---|
class |
BoundNullaryFunction<T>
Adapts a
Function
to the
NullaryFunction interface
using a constant unary argument. |
class |
FullyBoundNullaryFunction<T>
Adapts a
BinaryFunction
to the
NullaryFunction interface
using constant arguments. |
class |
NullaryPredicateNullaryFunction
Adapts a
Predicate
to the
NullaryFunction interface. |
class |
NullaryProcedureNullaryFunction<T>
|
Modifier and Type | Method and Description |
---|---|
static NullaryFunctionNullaryProcedure |
NullaryFunctionNullaryProcedure.adapt(NullaryFunction<?> function)
|
static <A,T> NullaryFunctionFunction<A,T> |
NullaryFunctionFunction.adapt(NullaryFunction<? extends T> function)
Adapt a NullaryFunction to the Function interface.
|
static NullaryFunctionNullaryPredicate |
NullaryFunctionNullaryPredicate.adapt(NullaryFunction<Boolean> function)
Adapt a NullaryFunction as a NullaryPredicate.
|
Constructor and Description |
---|
NullaryFunctionFunction(NullaryFunction<? extends T> function)
Create a new NullaryFunctionFunction.
|
NullaryFunctionNullaryPredicate(NullaryFunction<Boolean> function)
Create a new NullaryFunctionNullaryPredicate.
|
NullaryFunctionNullaryProcedure(NullaryFunction<?> function)
Create an
NullaryProcedure wrapping
the given NullaryFunction . |
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. |
Modifier and Type | Class and Description |
---|---|
class |
RecursiveEvaluation
Tail recursion for
functions . |
Constructor and Description |
---|
RecursiveEvaluation(NullaryFunction<?> function)
Create a new RecursiveEvaluation.
|
RecursiveEvaluation(NullaryFunction<?> function,
Class<?> functionType)
Create a new RecursiveEvaluation.
|
Modifier and Type | Class and Description |
---|---|
class |
ConditionalNullaryFunction<T>
A
NullaryFunction
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
TransformedNullaryFunction<T>
A NullaryFunction whose result is then run through a Function.
|
Modifier and Type | Method and Description |
---|---|
static <T> NullaryFunction<T> |
Conditional.function(NullaryPredicate q,
NullaryFunction<? extends T> r,
NullaryFunction<? extends T> s)
Create a conditional NullaryFunction.
|
Modifier and Type | Method and Description |
---|---|
static <T> NullaryFunction<T> |
Conditional.function(NullaryPredicate q,
NullaryFunction<? extends T> r,
NullaryFunction<? extends T> s)
Create a conditional NullaryFunction.
|
static <T> NullaryFunction<T> |
Conditional.function(NullaryPredicate q,
NullaryFunction<? extends T> r,
NullaryFunction<? extends T> s)
Create a conditional NullaryFunction.
|
Constructor and Description |
---|
ConditionalNullaryFunction(NullaryPredicate ifPred,
NullaryFunction<? extends T> thenFunc,
NullaryFunction<? extends T> elseFunc)
Create a new ConditionalNullaryFunction.
|
ConditionalNullaryFunction(NullaryPredicate ifPred,
NullaryFunction<? extends T> thenFunc,
NullaryFunction<? extends T> elseFunc)
Create a new ConditionalNullaryFunction.
|
TransformedNullaryFunction(NullaryFunction<? extends X> preceding,
Function<? super X,? extends T> following)
Create a new TransformedNullaryFunction.
|
TransformedNullaryProcedure(NullaryFunction<? extends X> function,
Procedure<? super X> procedure)
Create a new TransformedNullaryProcedure.
|
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.