| org.apache.commons.collections.functors |
|
This package contains implementations of the
{@link org.apache.commons.collections.Closure Closure},
{@link org.apache.commons.collections.Predicate Predicate},
{@link org.apache.commons.collections.Transformer Transformer} and
{@link org.apache.commons.collections.Factory Factory} interfaces.
These provide simple callbacks for processing with collections.
|
| Java Source File Name | Type | Comment |
| AllPredicate.java | Class | Predicate implementation that returns true if all the
predicates return true. |
| AndPredicate.java | Class | Predicate implementation that returns true if both the predicates return true. |
| AnyPredicate.java | Class | Predicate implementation that returns true if any of the
predicates return true. |
| ChainedClosure.java | Class | Closure implementation that chains the specified closures together. |
| ChainedTransformer.java | Class | Transformer implementation that chains the specified transformers together.
The input object is passed to the first transformer. |
| CloneTransformer.java | Class | Transformer implementation that returns a clone of the input object. |
| ClosureTransformer.java | Class | Transformer implementation that calls a Closure using the input object
and then returns the input. |
| ConstantFactory.java | Class | Factory implementation that returns the same constant each time.
No check is made that the object is immutable. |
| ConstantTransformer.java | Class | Transformer implementation that returns the same constant each time.
No check is made that the object is immutable. |
| EqualPredicate.java | Class | Predicate implementation that returns true if the input is the same object
as the one stored in this predicate by equals. |
| ExceptionClosure.java | Class | Closure implementation that always throws an exception. |
| ExceptionFactory.java | Class | Factory implementation that always throws an exception. |
| ExceptionPredicate.java | Class | Predicate implementation that always throws an exception. |
| ExceptionTransformer.java | Class | Transformer implementation that always throws an exception. |
| FactoryTransformer.java | Class | Transformer implementation that calls a Factory and returns the result. |
| FalsePredicate.java | Class | Predicate implementation that always returns false. |
| ForClosure.java | Class | Closure implementation that calls another closure n times, like a for loop. |
| FunctorUtils.java | Class | Internal utilities for functors. |
| IdentityPredicate.java | Class | Predicate implementation that returns true if the input is the same object
as the one stored in this predicate. |
| IfClosure.java | Class | Closure implementation acts as an if statement calling one or other closure
based on a predicate. |
| InstanceofPredicate.java | Class | Predicate implementation that returns true if the input is an instanceof
the type stored in this predicate. |
| InstantiateFactory.java | Class | Factory implementation that creates a new object instance by reflection. |
| InstantiateTransformer.java | Class | Transformer implementation that creates a new object instance by reflection. |
| InvokerTransformer.java | Class | Transformer implementation that creates a new object instance by reflection. |
| MapTransformer.java | Class | Transformer implementation that returns the value held in a specified map
using the input parameter as a key. |
| NonePredicate.java | Class | Predicate implementation that returns true if none of the
predicates return true. |
| NOPClosure.java | Class | Closure implementation that does nothing. |
| NOPTransformer.java | Class | Transformer implementation that does nothing. |
| NotNullPredicate.java | Class | Predicate implementation that returns true if the input is not null. |
| NotPredicate.java | Class | Predicate implementation that returns the opposite of the decorated predicate. |
| NullIsExceptionPredicate.java | Class | Predicate implementation that throws an exception if the input is null. |
| NullIsFalsePredicate.java | Class | Predicate implementation that returns false if the input is null. |
| NullIsTruePredicate.java | Class | Predicate implementation that returns true if the input is null. |
| NullPredicate.java | Class | Predicate implementation that returns true if the input is null. |
| OnePredicate.java | Class | Predicate implementation that returns true if only one of the
predicates return true. |
| OrPredicate.java | Class | Predicate implementation that returns true if either of the predicates return true. |
| PredicateDecorator.java | Interface | Defines a predicate that decorates one or more other predicates. |
| PredicateTransformer.java | Class | Transformer implementation that calls a Predicate using the input object
and then returns the input. |
| PrototypeFactory.java | Class | Factory implementation that creates a new instance each time based on a prototype. |
| StringValueTransformer.java | Class | Transformer implementation that returns the result of calling
String.valueOf on the input object. |
| SwitchClosure.java | Class | Closure implementation calls the closure whose predicate returns true,
like a switch statement. |
| SwitchTransformer.java | Class | Transformer implementation calls the transformer whose predicate returns true,
like a switch statement. |
| TransformedPredicate.java | Class | Predicate implementation that transforms the given object before invoking
another Predicate. |
| TransformerClosure.java | Class | Closure implementation that calls a Transformer using the input object
and ignore the result. |
| TransformerPredicate.java | Class | Predicate implementation that returns the result of a transformer. |
| TruePredicate.java | Class | Predicate implementation that always returns true. |
| UniquePredicate.java | Class | Predicate implementation that returns true the first time an object is
passed into the predicate. |
| WhileClosure.java | Class | Closure implementation that executes a closure repeatedly until a condition is met,
like a do-while or while loop. |