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 int |
deepHashCode(java.lang.Object element)
Calculates a hash code for the given object by traversing recursively into each field that does not contain
an
Object.hashCode() implementation. |
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 int deepHashCode(java.lang.Object element)
Object.hashCode() implementation. Collections and Maps are always traversed recursively.element - the element for which to create the deep hash code