public class DeepEquals extends Object
Constructor and Description |
---|
DeepEquals() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deepEquals(Object a,
Object b)
Compare two objects with a 'deep' comparison.
|
static int |
deepHashCode(Object obj)
Get a deterministic hashCode (int) value for an Object, regardless of
when it was created or where it was loaded into memory.
|
static boolean |
hasCustomEquals(Class c)
Determine if the passed in class has a non-Object.equals() method.
|
static boolean |
hasCustomHashCode(Class c)
Determine if the passed in class has a non-Object.hashCode() method.
|
public static boolean deepEquals(Object a, Object b)
a
- Object one to compareb
- Object two to comparepublic static boolean hasCustomEquals(Class c)
c
- Class to check.public static int deepHashCode(Object obj)
obj
- Object who hashCode is desired.public static boolean hasCustomHashCode(Class c)
c
- Class to check.Copyright © 2013. All rights reserved.