public final class ObjectCompareUtils extends Object
Constructor and Description |
---|
ObjectCompareUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
GetDiffBetweenGroups(Collection OriginalItems,
Collection UpdatedItems,
String IdentifierAttribute,
RefObject<ArrayList> NewItems,
RefObject<ArrayList> DeletedItems) |
static void |
GetDiffBetweenGroups(List OriginalItems,
List UpdatedItems,
RefObject<ArrayList> NewItems,
RefObject<ArrayList> DeletedItems) |
static boolean |
IsDataChanged(Collection from,
Collection to,
String idField,
ArrayList<String> properties)
Compare two collections from same type and check if their data are same
|
static boolean |
IsObjectsEqual(Object first,
Object second,
ArrayList<String> props) |
public static boolean IsDataChanged(Collection from, Collection to, String idField, ArrayList<String> properties)
from
- first collectionto
- second collectionidField
- name of the identifier field in underline objectproperties
- list of properties to compare. If all the properties of all objects have the same value - collections
decided to be equalpublic static boolean IsObjectsEqual(Object first, Object second, ArrayList<String> props)
public static void GetDiffBetweenGroups(Collection OriginalItems, Collection UpdatedItems, String IdentifierAttribute, RefObject<ArrayList> NewItems, RefObject<ArrayList> DeletedItems)
Copyright © 2012. All Rights Reserved.