public final class Objects
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
applyClosureToDelegate(groovy.lang.Closure<?> closure,
java.lang.Object delegate)
Applies the given closure to the given delegate.
|
static <T> T |
cloneObject(T obj)
Clones the given object via in-memory object serialization and deserialization.
|
public static void applyClosureToDelegate(groovy.lang.Closure<?> closure,
java.lang.Object delegate)
closure - the closure to applydelegate - the delegate that the closure is applied topublic static <T> T cloneObject(T obj)
T - the type of the object to cloneobj - the object to clone