public final class BusinessIdentity extends Object
BusinessKey annotation, and then delegate
your equals and hashCode methods.
.BusinessValidator.validate
(Object).BusinessException will be thrown if the objects don't pass business validation.| Constructor and Description |
|---|
BusinessIdentity() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areEqual(Object first,
Object second)
This method is responsibly for handling equality between two objects.
|
static int |
getHashCode(Object object)
This method handles generation of the hashCode for a given object.
|
static String |
toString(Object instance) |
public static boolean areEqual(Object first, Object second)
first - The first object to compare with.second - The second object to compare with.public static int getHashCode(Object object)
object - Object to generate hashCode for.Copyright © 2010-2016. All Rights Reserved.