public interface IdentityHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(Object first,
Object second)
This method is responsible for evaluating two objects as equal using the identity.
|
int |
generateHashCode(Object object)
This method will calculate hash code based on the BusinessKey.
|
boolean |
handlerFor(Object object)
This method returns true or false depending on whether this IdentityHandler handles identity for this object
|
String |
toString(Object object)
This method is responsible for stringanizing fields in an object.
|
void |
validate(Object object)
This method validates an object to comply with the BusinessKey annotation rules.
|
int generateHashCode(Object object)
object - Object to generate hashCode for.boolean areEqual(Object first, Object second)
first - First object in the equality.second - Second object in the equality.String toString(Object object)
object - The Object to be flattened into a string.void validate(Object object)
object - The Business Object to be validated.boolean handlerFor(Object object)
object - Object to handle.Copyright © 2010–2021. All rights reserved.