public class ObjectUtil extends Object
| Constructor and Description |
|---|
ObjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(Comparable object1,
Comparable object2)
Returns a comparison of the two given objects.
|
static boolean |
equal(Object object1,
Object object2)
Returns whether the given objects are the same.
|
static int |
hashCode(Object object)
Returns the hash code of the given object, or 0 if it is null.
|
public static boolean equal(Object object1, Object object2)
object1 - the first object, may be null.object2 - the second object, may be null.public static int hashCode(Object object)
object - the object, may be null.public static int compare(Comparable object1, Comparable object2)
object1 - the first object, may be null.object2 - the second object, may be null.Comparable.compareTo(Object)Copyright © 2015. All Rights Reserved.