class FunctorUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.String |
UNSAFE_SERIALIZABLE_PROPERTY
System property key to enable unsafe serialization
|
| Modifier | Constructor and Description |
|---|---|
private |
FunctorUtils()
Restricted constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static void |
checkUnsafeSerialization(java.lang.Class clazz)
Package-private helper method to check if serialization support is
enabled for unsafe classes.
|
(package private) static Closure[] |
copy(Closure[] closures)
Clone the closures to ensure that the internal reference can't be messed with.
|
(package private) static Predicate[] |
copy(Predicate[] predicates)
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 void |
validate(Closure[] closures)
Validate the closures to ensure that all is well.
|
(package private) static Predicate[] |
validate(java.util.Collection predicates)
Validate the predicates to ensure that all is well.
|
(package private) static void |
validate(Predicate[] predicates)
Validate the predicates to ensure that all is well.
|
(package private) static void |
validate(Transformer[] transformers)
Validate method
|
static final java.lang.String UNSAFE_SERIALIZABLE_PROPERTY
static Predicate[] copy(Predicate[] predicates)
predicates - the predicates to copystatic void validate(Predicate[] predicates)
predicates - the predicates to validatestatic Predicate[] validate(java.util.Collection predicates)
predicates - the predicates to validatestatic Closure[] copy(Closure[] closures)
closures - the closures to copystatic void validate(Closure[] closures)
closures - the closures to validatestatic Transformer[] copy(Transformer[] transformers)
transformers - the transformers to copystatic void validate(Transformer[] transformers)
transformers - the transformers to validatestatic void checkUnsafeSerialization(java.lang.Class clazz)
clazz - the clazz to check for serialization supportjava.lang.UnsupportedOperationException - if unsafe serialization is disabled