public class DeepEquals extends Object
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.
|
static boolean |
isContainerType(Object o) |
public static boolean deepEquals(Object a, Object b)
a
- Object one to compareb
- Object two to comparepublic static boolean isContainerType(Object o)
public 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 © 2016. All rights reserved.