Package org.apache.commons.collections.functors
This package contains implementations of the
Closure
,
Predicate
,
Transformer
and
Factory
interfaces.
These provide simple callbacks for processing with collections.
WARNING: from v3.2.2 onwards this several classes in this package will
throw an UnsupportedOperationException
when trying to serialize or
de-serialize an instance to prevent potential remote code execution exploits.
Classes considered to be unsafe are:
- CloneTransformer
- ForClosure
- InstantiateFactory
- InstantiateTransformer
- InvokerTransformer
- PrototypeFactory$PrototypeCloneFactory
- PrototypeFactory$PrototypeSerializationFactory
- WhileClosure
In order to re-enable serialization support for these unsafe classes, the following system property can be used (via -Dproperty=true):
org.apache.commons.collections.enableUnsafeSerialization
Be warned though that enabling serialization support for these unsafe classes makes your application vulnerable to known exploits and you must ensure that your application does not de-serialize objects from untrusted sources.
-
Interface Summary Interface Description PredicateDecorator Deprecated. Please use Apache Commons Collections 4 instead. -
Class Summary Class Description AllPredicate Deprecated. Please use Apache Commons Collections 4 instead.AndPredicate Deprecated. Please use Apache Commons Collections 4 instead.AnyPredicate Deprecated. Please use Apache Commons Collections 4 instead.ChainedClosure Deprecated. Please use Apache Commons Collections 4 instead.ChainedTransformer Deprecated. Please use Apache Commons Collections 4 instead.CloneTransformer Deprecated. Please use Apache Commons Collections 4 instead.ClosureTransformer Deprecated. Please use Apache Commons Collections 4 instead.ConstantFactory Deprecated. Please use Apache Commons Collections 4 instead.ConstantTransformer Deprecated. Please use Apache Commons Collections 4 instead.EqualPredicate Deprecated. Please use Apache Commons Collections 4 instead.ExceptionClosure Deprecated. Please use Apache Commons Collections 4 instead.ExceptionFactory Deprecated. Please use Apache Commons Collections 4 instead.ExceptionPredicate Deprecated. Please use Apache Commons Collections 4 instead.ExceptionTransformer Deprecated. Please use Apache Commons Collections 4 instead.FactoryTransformer Deprecated. Please use Apache Commons Collections 4 instead.FalsePredicate Deprecated. Please use Apache Commons Collections 4 instead.ForClosure Deprecated. Please use Apache Commons Collections 4 instead.IdentityPredicate Deprecated. Please use Apache Commons Collections 4 instead.IfClosure Deprecated. Please use Apache Commons Collections 4 instead.InstanceofPredicate Deprecated. Please use Apache Commons Collections 4 instead.InstantiateFactory Deprecated. Please use Apache Commons Collections 4 instead.InstantiateTransformer Deprecated. Please use Apache Commons Collections 4 instead.InvokerTransformer Deprecated. Please use Apache Commons Collections 4 instead.MapTransformer Deprecated. Please use Apache Commons Collections 4 instead.NonePredicate Deprecated. Please use Apache Commons Collections 4 instead.NOPClosure Deprecated. Please use Apache Commons Collections 4 instead.NOPTransformer Deprecated. Please use Apache Commons Collections 4 instead.NotNullPredicate Deprecated. Please use Apache Commons Collections 4 instead.NotPredicate Deprecated. Please use Apache Commons Collections 4 instead.NullIsExceptionPredicate Deprecated. Please use Apache Commons Collections 4 instead.NullIsFalsePredicate Deprecated. Please use Apache Commons Collections 4 instead.NullIsTruePredicate Deprecated. Please use Apache Commons Collections 4 instead.NullPredicate Deprecated. Please use Apache Commons Collections 4 instead.OnePredicate Deprecated. Please use Apache Commons Collections 4 instead.OrPredicate Deprecated. Please use Apache Commons Collections 4 instead.PredicateTransformer Deprecated. Please use Apache Commons Collections 4 instead.PrototypeFactory Deprecated. Please use Apache Commons Collections 4 instead.StringValueTransformer Deprecated. Please use Apache Commons Collections 4 instead.SwitchClosure Deprecated. Please use Apache Commons Collections 4 instead.SwitchTransformer Deprecated. Please use Apache Commons Collections 4 instead.TransformedPredicate Deprecated. Please use Apache Commons Collections 4 instead.TransformerClosure Deprecated. Please use Apache Commons Collections 4 instead.TransformerPredicate Deprecated. Please use Apache Commons Collections 4 instead.TruePredicate Deprecated. Please use Apache Commons Collections 4 instead.UniquePredicate Deprecated. Please use Apache Commons Collections 4 instead.WhileClosure Deprecated. Please use Apache Commons Collections 4 instead.