Closure,
Predicate,
Transformer and
Factory interfaces.
These provide simple callbacks for processing with collections.Warning
from v4.1 onwards several unsafe classes in this package will not be serializable anymore in order to prevent potential remote code execution exploits.
Classes considered to be unsafe are:
| Modifier and Type | Interface and Description |
|---|---|
| public interface |
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | AbstractQuantifierPredicate<T>
Abstract base class for quantification predicates, e.g. All, Any, None. |
| public class | |
| public class | |
| public class | |
| public abstract class | CatchAndRethrowClosure<E>
|
| public class | |
| public class | |
| public class | |
| public class | ClosureTransformer<T>
Transformer implementation that calls a Closure using the input object and then returns the input. |
| public class | ComparatorPredicate<T>
Predicate that compares the input object with the one stored in the predicate using a comparator. |
| public class | |
| public class | |
| public class | |
| public class | EqualPredicate<T>
Predicate implementation that returns true if the input is the same object as the one stored in this predicate by equals. |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| pack-priv class | FunctorUtils
Internal utilities for functors. |
| public class | IdentityPredicate<T>
Predicate implementation that returns true if the input is the same object as the one stored in this predicate. |
| public class | IfClosure<E>
Closure implementation acts as an if statement calling one or other closure based on a predicate. |
| public class | IfTransformer<
The input type for the transformer I, The output type for the transformer O>Transformer implementation that will call one of two closures based on whether a predicate evaluates as true or false. |
| public class | InstanceofPredicate
Predicate implementation that returns true if the input is an instanceof the type stored in this predicate. |
| public class | |
| public class | InstantiateTransformer<T>
Transformer implementation that creates a new object instance by reflection. |
| public class | InvokerTransformer<I, O>
Transformer implementation that creates a new object instance by reflection. |
| public class | MapTransformer<I, O>
Transformer implementation that returns the value held in a specified map using the input parameter as a key. |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | |
| public class | OnePredicate<T>
Predicate implementation that returns true if only one of the predicates return true. |
| public class | |
| public class | PredicateTransformer<T>
Transformer implementation that calls a Predicate using the input object and then returns the result. |
| public class | PrototypeFactory
Factory implementation that creates a new instance each time based on a prototype. |
| public class | StringValueTransformer<T>
Transformer implementation that returns the result of calling
|
| public class | SwitchClosure<E>
Closure implementation calls the closure whose predicate returns true, like a switch statement. |
| public class | SwitchTransformer<I, O>
Transformer implementation calls the transformer whose predicate returns true, like a switch statement. |
| public class | TransformedPredicate<T>
Predicate implementation that transforms the given object before invoking
another |
| public class | TransformerClosure<E>
Closure implementation that calls a Transformer using the input object and ignore the result. |
| public class | |
| public class | |
| public class | UniquePredicate<T>
Predicate implementation that returns true the first time an object is passed into the predicate. |
| public class | WhileClosure<E>
Closure implementation that executes a closure repeatedly until a condition is met, like a do-while or while loop. |