|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnu.studer.gradle.util.Objects
public final class Objects
Utility class.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||