Package org.apache.commons.functor
Basic functor interfaces.
Implementors are encouraged, but not strictly required, to make each functor
implementation Serializable.
Note that each functor interface extends the
Object.equals contract to state that
equals can return true only if
the specified Object implements the same functor interface
and is known to produce the same results and/or side-effects
for the same arguments (if any). Note that the default
Object.equals implementation
does in fact adhere to the functor equals contract.
-
Interface Summary Interface Description BinaryFunction<L,R,T> A functor that takes two arguments and returns a value.BinaryFunctor<L,R> Marker interface for binary (two-argument) functors.BinaryPredicate<L,R> A functor that takes two arguments and returns abooleanvalue.BinaryProcedure<L,R> A functor that takes two arguments and has no return value.Function<T> A functor that takes no arguments and returns a value.Functor Functor marker interface.NullaryFunctor Marker interface for nullary (zero-argument) functors.Predicate A functor that takes no arguments and returns abooleanvalue.Procedure A functor that takes no arguments and returns no value.UnaryFunction<A,T> A functor that takes one argument and returns anObjectvalue.UnaryFunctor<A> Marker interface for unary (single-argument) functors.UnaryPredicate<A> A functor that takes one argument and returns abooleanvalue.UnaryProcedure<A> A functor that takes one argument and returns no value.