Class FunctorUtils
java.lang.Object
org.apache.commons.collections.functors.FunctorUtils
Internal utilities for functors.
- Since:
- Commons Collections 3.0
- Version:
- $Revision: 1713845 $ $Date: 2015-11-11 15:02:16 +0100 (Wed, 11 Nov 2015) $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
System property key to enable unsafe serialization -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
checkUnsafeSerialization
(Class clazz) Package-private helper method to check if serialization support is enabled for unsafe classes.(package private) static Closure[]
Clone the closures to ensure that the internal reference can't be messed with.(package private) static Predicate[]
Clone the predicates to ensure that the internal reference can't be messed with.(package private) static Transformer[]
copy
(Transformer[] transformers) Copy method(package private) static Predicate[]
validate
(Collection predicates) Validate the predicates to ensure that all is well.(package private) static void
Validate the closures to ensure that all is well.(package private) static void
Validate the predicates to ensure that all is well.(package private) static void
validate
(Transformer[] transformers) Validate method
-
Field Details
-
UNSAFE_SERIALIZABLE_PROPERTY
System property key to enable unsafe serialization- See Also:
-
-
Constructor Details
-
FunctorUtils
private FunctorUtils()Restricted constructor.
-
-
Method Details
-
copy
Clone the predicates to ensure that the internal reference can't be messed with.- Parameters:
predicates
- the predicates to copy- Returns:
- the cloned predicates
-
validate
Validate the predicates to ensure that all is well.- Parameters:
predicates
- the predicates to validate
-
validate
Validate the predicates to ensure that all is well.- Parameters:
predicates
- the predicates to validate- Returns:
- predicate array
-
copy
Clone the closures to ensure that the internal reference can't be messed with.- Parameters:
closures
- the closures to copy- Returns:
- the cloned closures
-
validate
Validate the closures to ensure that all is well.- Parameters:
closures
- the closures to validate
-
copy
Copy method- Parameters:
transformers
- the transformers to copy- Returns:
- a clone of the transformers
-
validate
Validate method- Parameters:
transformers
- the transformers to validate
-
checkUnsafeSerialization
Package-private helper method to check if serialization support is enabled for unsafe classes.- Parameters:
clazz
- the clazz to check for serialization support- Throws:
UnsupportedOperationException
- if unsafe serialization is disabled
-