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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
BinaryFunction<L,R,T>
A functor that takes two arguments and returns a value.
|
interface |
BinaryPredicate<L,R>
A functor that takes two arguments and returns a
boolean value. |
interface |
BinaryProcedure<L,R>
A functor that takes two arguments and has no return value.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryFunctionBinaryPredicate<L,R>
|
class |
BinaryFunctionBinaryProcedure<L,R>
Adapts a
BinaryFunction
to the BinaryProcedure
interface by ignoring the value returned
by the function. |
class |
BinaryPredicateBinaryFunction<L,R>
Adapts a
BinaryPredicate
to the
BinaryFunction interface. |
class |
BinaryProcedureBinaryFunction<L,R,T>
|
class |
IgnoreLeftFunction<L,R,T>
Adapts a
Function
to the
BinaryFunction interface
by ignoring the first binary argument. |
class |
IgnoreLeftPredicate<L,R>
Adapts a
Predicate
to the
BinaryPredicate interface
by ignoring the first binary argument. |
class |
IgnoreLeftProcedure<L,R>
Adapts a
Procedure
to the
BinaryProcedure interface
by ignoring the first binary argument. |
class |
IgnoreRightFunction<L,R,T>
Adapts a
Function
to the
BinaryFunction interface
by ignoring the second binary argument. |
class |
IgnoreRightPredicate<L,R>
Adapts a
Predicate
to the
BinaryPredicate interface
by ignoring the second binary argument. |
class |
IgnoreRightProcedure<L,R>
Adapts a
Procedure
to the
BinaryProcedure interface
by ignoring the second binary argument. |
Modifier and Type | Class and Description |
---|---|
class |
DoubleMaxAggregatorBinaryFunction
Aggregation function to be used with subclasses of
AbstractNoStoreAggregator which
finds the maximum of 2 double(s). |
class |
DoubleSumAggregatorBinaryFunction
Aggregator function to be used with subclasses of
AbstractNoStoreAggregator which
sums up the 2 given numbers (hence the "Binary" in the name!). |
class |
IntegerCountAggregatorBinaryFunction
Aggregator function to be used with subclasses of
AbstractNoStoreAggregator which
simply increments the first argument by 1 and returns it. |
class |
IntegerMaxAggregatorBinaryFunction
Aggregation function to be used with subclasses of
AbstractNoStoreAggregator which
finds the maximum of 2 ints. |
class |
IntegerSumAggregatorBinaryFunction
Aggregator function to be used with subclasses of
AbstractNoStoreAggregator which
sums up the 2 given numbers (hence the "Binary" in the name!). |
Modifier and Type | Class and Description |
---|---|
class |
Constant<T>
Evaluates to constant value. |
class |
IsEqual<L,R>
|
class |
IsInstance<T>
|
class |
IsNotEqual<L,R>
|
class |
IsNotSame<L,R>
Tests the reference (! |
class |
IsSame<L,R>
Tests the reference (==) equality of its arguments. |
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 |
FindWithinGenerator<E>
|
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 . |
class |
GeneratorContains<T>
|
class |
IndexOfInGenerator<T>
Return the index of the first Object in a
LoopGenerator matching a
Predicate , or -1 if not found. |
class |
InPlaceTransform<T>
Implements an in-place transformation of a ListIterator's contents.
|
class |
RemoveMatching<T>
Remove elements from left Iterator that match right Predicate.
|
class |
RetainMatching<T>
Retain elements in left Iterator that match right Predicate.
|
Modifier and Type | Class and Description |
---|---|
class |
IsElementOf<L,R>
A
BinaryPredicate that checks to see if the
specified object is an element of the specified
Collection. |
Modifier and Type | Class and Description |
---|---|
class |
ComparatorFunction<T>
Adapts a
Comparator to the
BinaryFunction interface. |
class |
IsEquivalent<T>
A
BinaryPredicate that tests
true iff the left argument is equal to the
right argument under the specified Comparator . |
class |
IsGreaterThan<T>
A
BinaryPredicate that tests
true iff the left argument is greater than the
right argument under the specified Comparator . |
class |
IsGreaterThanOrEqual<T>
A
BinaryPredicate that tests
true iff the left argument is greater than or equal
to the right argument under the specified Comparator . |
class |
IsLessThan<T>
A
BinaryPredicate that tests
true iff the left argument is greater than the
right argument under the specified Comparator . |
class |
IsLessThanOrEqual<T>
A
BinaryPredicate that tests
true iff the left argument is less than or equal to the
right argument under the specified Comparator . |
class |
IsNotEquivalent<T>
A
BinaryPredicate that tests
true iff the left argument is not equal to the
right argument under the specified Comparator . |
class |
Max<T>
Adapts a
Comparator to the
BinaryFunction interface. |
class |
Min<T>
Adapts a
Comparator to the
BinaryFunction interface. |
Modifier and Type | Class and Description |
---|---|
class |
BinaryAnd<L,R>
|
class |
BinaryCompositeBinaryFunction<L,R,T>
A
BinaryFunction composed of
three binary functions, f, g and h,
evaluating the ordered parameters x, y
to f(g(x,y),h(x,y)) . |
class |
BinaryNot<L,R>
Tests to the logical inverse
of some other predicate. |
class |
BinaryOr<L,R>
|
class |
BinarySequence<L,R>
|
class |
CompositeBinaryFunction<L,R,T>
A
BinaryFunction composed of
one binary function, f, and two
functions, g and h,
evaluating the ordered parameters x, y
to f(g(x),h(y)) . |
class |
CompositeBinaryPredicate<L,R>
A
BinaryPredicate composed of
one binary predicate, p, and two
functions, f and g,
evaluating the ordered parameters x, y
to p(f(x),g(y)) . |
class |
ConditionalBinaryFunction<L,R,T>
A
BinaryFunction
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalBinaryPredicate<L,R>
A
BinaryPredicate
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
ConditionalBinaryProcedure<L,R>
A
BinaryProcedure
similiar to Java's "ternary"
or "conditional" operator (? : ). |
class |
TransformedBinaryFunction<L,R,T>
A BinaryFunction whose result is then run through a Function.
|
class |
TransformedBinaryProcedure<L,R>
A BinaryProcedure composed of a BinaryFunction whose result is then run through a Procedure.
|
class |
TransposedFunction<L,R,T>
Transposes (swaps) the arguments to some other
function . |
class |
TransposedPredicate<L,R>
Transposes (swaps) the arguments to some other
predicate . |
class |
TransposedProcedure<L,R>
Transposes (swaps) the arguments to some other
procedure . |
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.