public final class EqualsAndHashCodeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
equalsUsingCompareToOnFields(T o1,
T o2,
String... fieldNames)
This method provides an equals comparison of two objects by evaluating the results of compareTo across specified
internal fields of the class of the two objects being compared.
|
static int |
hashCodeForCalendars(Calendar... calendars)
Generates an int hashcode from all calendars passed in.
|
public static <T> boolean equalsUsingCompareToOnFields(T o1, T o2, String... fieldNames)
T - Type of both o1 and o2 parameters. Guarantees both o1 and o2 are the same reference type.o1 - The first object used in an equality operation using compareToo2 - The second object used in an equality operation using compareTofieldNames - All field names within type T that should be determined equal or not using compareTopublic static int hashCodeForCalendars(Calendar... calendars)
calendars - Copyright © 2005–2016 The Kuali Foundation. All rights reserved.