public class BusinessIdentityUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
anyNull(java.lang.Object... objects) |
static boolean |
areEqual(BusinessKeyField pojoField,
java.lang.Object first,
java.lang.Object second,
boolean caseSensitive)
Perform Equality between two PojoFields' instances.
|
static int |
getHashCode(BusinessKeyField pojoField,
java.lang.Object instance,
boolean caseSensitive)
Generate HashCode on field value.
|
static boolean |
sameClass(java.lang.Object first,
java.lang.Object second)
This method checks if two objects are of the same class.
|
static boolean |
sameInstance(java.lang.Object first,
java.lang.Object second)
This method checks if two object point to the same instance.
|
public static boolean anyNull(java.lang.Object... objects)
objects - List of objects to check if any are null.public static boolean sameClass(java.lang.Object first,
java.lang.Object second)
first - First object to check.second - Second object to check.public static boolean sameInstance(java.lang.Object first,
java.lang.Object second)
first - First object to check.second - Second object to check.public static boolean areEqual(BusinessKeyField pojoField, java.lang.Object first, java.lang.Object second, boolean caseSensitive)
pojoField - The pojoField to perform the equality on.first - The first instance that contains this PojoField.second - The second instance that contains this PojoField.caseSensitive - Whether or not to compare ignoring case.public static int getHashCode(BusinessKeyField pojoField, java.lang.Object instance, boolean caseSensitive)
pojoField - The pojoField to get the hashCode for.instance - The instance to pull the field value out of.caseSensitive - Whether or not to ignore case while generating hash code.Copyright © 2010-2015. All Rights Reserved.