It works on all read/write properties, recursively. It support all primitive types, Strings, Collections, bean-like objects and multi-dimensional arrays of any of them.
The hashcode is calculated by getting the hashcode of the Bean String representation.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the object passed in the constructor is equal to the 'obj' object.The reference object with which to compare. obj1, final Object The object to which to compare. obj2)Indicates whether some other object is "equal to" the object passed in the constructor, as defined by the Object equals() method. |
| public static int | Returns: the hashcode of the bean object.Returns the hashcode for the object passed in the constructor. |
| private static boolean | |
| private static boolean |
| NO_PARAMS | back to summary |
|---|---|
| private static final Object[] NO_PARAMS | |
| EqualsBean | back to summary |
|---|---|
| private EqualsBean() | |
| beanEquals | back to summary |
|---|---|
| public static boolean beanEquals(Class<?> beanClass, final Object obj1, final Object obj2) Indicates whether some other object is "equal to" the object passed in the constructor, as defined by the Object equals() method. To be used by classes using EqualsBean in a delegation pattern, | |
| beanHashCode | back to summary |
|---|---|
| public static int beanHashCode(Object obj) Returns the hashcode for the object passed in the constructor. It follows the contract defined by the Object hashCode() method. The hashcode is calculated by getting the hashcode of the Bean String representation. To be used by classes using EqualsBean in a delegation pattern,
| |
| doEquals | back to summary |
|---|---|
| private static boolean doEquals(final Object obj1, final Object obj2) | |
| equalsArray | back to summary |
|---|---|
| private static boolean equalsArray(final Object array1, final Object array2) | |