public final class ObjectUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(Object obj1,
Object obj2)
Compares the equality of two objects, including their null states.
|
static int |
hash(Object... values)
Gets the hashCode for a set of objects or
0 when null. |
static int |
hashCode(Object obj)
Gets the hashCode for an object or
0 when null. |
static String |
toString(Object obj)
Calls toString if non-null, returns null when null.
|
public static int hashCode(Object obj)
0 when null.public static int hash(Object... values)
0 when null.public static boolean equals(Object obj1, Object obj2)
Copyright © 2016. All rights reserved.