public final class BusinessIdentity
extends java.lang.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(java.lang.Object first,
java.lang.Object second)
This method is responsibly for handling equality between two objects.
|
static int |
getHashCode(java.lang.Object object)
This method handles generation of the hashCode for a given object.
|
static java.lang.String |
toString(java.lang.Object instance) |
public static boolean areEqual(java.lang.Object first,
java.lang.Object second)
first - The first object to compare with.second - The second object to compare with.public static int getHashCode(java.lang.Object object)
object - Object to generate hashCode for.public static java.lang.String toString(java.lang.Object instance)
Copyright © 2010-2015. All Rights Reserved.