public class EqualsBean extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
beanEquals(Class<?> beanClass,
Object obj1,
Object obj2)
Indicates whether some other object is "equal to" the object passed in the constructor, as
defined by the Object equals() method.
|
static int |
beanHashCode(Object obj)
Returns the hashcode for the object passed in the constructor.
|
public static boolean beanEquals(Class<?> beanClass, Object obj1, Object obj2)
To be used by classes using EqualsBean in a delegation pattern,
obj1 - The reference object with which to compare.obj2 - The object to which to compare.public static int beanHashCode(Object obj)
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,
Copyright © 2023. All rights reserved.