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.functions |
This package contains
Function 's used by aggregators
defined in org.apache.commons.functor.aggregator . |
org.apache.commons.functor.core |
Commonly used functor implementations.
|
org.apache.commons.functor.core.algorithm |
Various algorithm-esque functors.
|
org.apache.commons.functor.core.collection |
Collection -based functors, algorithms and utilities. |
org.apache.commons.functor.core.comparator |
Comparator - and
Comparable -based functors, algorithms and utilities. |
org.apache.commons.functor.core.composite |
Functors composed of other functors.
|
org.apache.commons.functor.generator.util |
Contains utility code for Generators.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Function<A,T>
A functor that takes one argument and returns an
Object value. |
interface |
Predicate<A>
A functor that takes one argument and returns a
boolean value. |
interface |
Procedure<A>
A functor that takes one argument and returns no value.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryFunctionFunction<A,T>
Adapts a BinaryFunction as a Function by sending the same argument to both sides of the BinaryFunction.
|
class |
BinaryPredicatePredicate<A>
Adapts a BinaryPredicate as a Predicate by sending the same argument to both sides of the BinaryPredicate.
|
class |
BinaryProcedureProcedure<A>
Adapts a BinaryProcedure as a Procedure by sending the same argument to both sides of the BinaryProcedure.
|
class |
FunctionPredicate<A>
|
class |
FunctionProcedure<A>
|
class |
LeftBoundFunction<A,T>
Adapts a
BinaryFunction
to the
Function interface
using a constant left-side argument. |
class |
LeftBoundPredicate<A>
Adapts a
BinaryPredicate
to the
Predicate interface
using a constant left-side argument. |
class |
LeftBoundProcedure<A>
Adapts a
BinaryProcedure
to the
Procedure interface
using a constant left-side argument. |
class |
NullaryFunctionFunction<A,T>
Adapts a
NullaryFunction
to the
Function interface
by ignoring the unary argument. |
class |
NullaryPredicatePredicate<A>
Adapts a
NullaryPredicate
to the
Predicate interface
by ignoring the given argument. |
class |
NullaryProcedureProcedure<A>
|
class |
PredicateFunction<A>
|
class |
ProcedureFunction<A,T>
|
class |
RightBoundFunction<A,T>
Adapts a
BinaryFunction
to the
Function interface
using a constant right-side argument. |
class |
RightBoundPredicate<A>
Adapts a
BinaryPredicate
to the
Predicate interface
using a constant left-side argument. |
class |
RightBoundProcedure<A>
Adapts a
BinaryProcedure
to the
Procedure interface
using a constant left-side argument. |
Modifier and Type | Class and Description |
---|---|
class |
DoubleMaxAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which finds the maximum number in a list. |
class |
DoubleMeanValueAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which computes the arithmetic mean of all the numbers in the list. |
class |
DoubleMedianValueAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which computes the median
of all the numbers in the list. |
class |
DoublePercentileAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which retrieves the percentile value for a
given percentile. |
class |
DoubleSumAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which sums up all the numbers in the list. |
class |
IntegerMaxAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which finds the maximum number in a list. |
class |
IntegerMeanValueAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which computes the arithmetic mean of all the numbers in the list. |
class |
IntegerMedianValueAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which computes the median
of all the numbers in the list. |
class |
IntegerPercentileAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which retrieves the percentile value for a
given percentile. |
class |
IntegerSumAggregatorFunction
Aggregator function to be used with subclasses of
AbstractListBackedAggregator
which sums up all the numbers in the list. |
Modifier and Type | Class and Description |
---|---|
class |
Constant<T>
Evaluates to constant value. |
class |
Identity<T>
Evaluates to its input argument. |
class |
IsNotNull<T>
|
class |
IsNull<A>
|
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 |
FoldLeft<T>
Functional left-fold algorithm against the elements of a
Generator . |
class |
FoldRight<T>
Functional right-fold algorithm against the elements of a
Generator . |
Modifier and Type | Class and Description |
---|---|
class |
IsEmpty<A>
A
Predicate that checks to see if the specified object is empty. |
class |
Size<A>
Returns the size of the specified Collection, or the length
of the specified array or String.
|
Modifier and Type | Class and Description |
---|---|
class |
IsWithinRange<A extends Comparable<A>>
A
Predicate that tests whether a Comparable object is
within a range. |
Modifier and Type | Class and Description |
---|---|
class |
And<A>
|
class |
CompositeFunction<A,T>
|
class |
CompositePredicate<A>
|
class |
CompositeProcedure<A>
|
class |
ConditionalFunction<A,T>
A
Function
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalPredicate<A>
A
Predicate
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalProcedure<A>
A
Procedure
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
Not<A>
Tests to the logical inverse
of some other predicate. |
class |
Or<A>
|
class |
Sequence<A>
|
Modifier and Type | Class and Description |
---|---|
class |
CollectionTransformer<E,C extends Collection<? super E>>
Transforms a generator into a collection.
|
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.