public class BusinessIdentityUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
anyNull(Object... objects) |
static boolean |
areEqual(BusinessKeyField pojoField,
Object first,
Object second,
boolean caseSensitive)
Perform Equality between two PojoFields' instances.
|
static int |
getHashCode(BusinessKeyField pojoField,
Object instance,
boolean caseSensitive)
Generate HashCode on field value.
|
static boolean |
sameClass(Object first,
Object second)
This method checks if two objects are of the same class.
|
static boolean |
sameInstance(Object first,
Object second)
This method checks if two object point to the same instance.
|
public static boolean anyNull(Object... objects)
objects - List of objects to check if any are null.public static boolean sameClass(Object first, Object second)
first - First object to check.second - Second object to check.public static boolean sameInstance(Object first, Object second)
first - First object to check.second - Second object to check.public static boolean areEqual(BusinessKeyField pojoField, Object first, 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, 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–2019. All rights reserved.