Utility class.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
applyClosureToDelegate(groovy.lang.Closure<?> closure, java.lang.Object delegate)Applies the given closure to the given delegate. |
<T> |
static T |
cloneObject(T obj)Clones the given object via in-memory object serialization and deserialization. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Applies the given closure to the given delegate.
closure - the closure to applydelegate - the delegate that the closure is applied toClones the given object via in-memory object serialization and deserialization.
obj - the object to clone - the type of the object to clone