public interface ComparisonUtils
| Modifier and Type | Method and Description |
|---|---|
void |
compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx)
Compare collections of
DbObjects using their DbObject#diff(DbObject, Differences) method. |
void |
compareSimple(DbProperty left,
DbProperty right,
DiffContext ctx)
Compare two 'simple' (i.e.
|
void |
compareSimpleCollections(DbProperty leftProperty,
DbProperty rightProperty,
DiffContext ctx)
Compare two collections.
|
void |
compareSimpleOrderedLists(DbProperty leftProperty,
DbProperty rightProperty,
DiffContext ctx)
Compare two
Lists of 'simple' (i.e. |
java.util.List |
findEquivalentObjects(DbObject rootObject,
DbObject objToMatch) |
java.util.List findEquivalentObjects(DbObject rootObject, DbObject objToMatch)
void compareSimpleOrderedLists(DbProperty leftProperty, DbProperty rightProperty, DiffContext ctx)
Lists of 'simple' (i.e. non-DbObject) objects. Ordering
is significant - if an element E appears in both collections but at different indexes
then it is not considered to be the same item.leftProperty - rightProperty - ctx - void compareSimpleCollections(DbProperty leftProperty, DbProperty rightProperty, DiffContext ctx)
ComparisonUtils.compareSimpleOrderedLists(DbProperty, DbProperty, DiffContext)
except that this method operates on Collections and order (and cardinality) is not important. If
an element E from the reference collection appears one or more times at any position in the target collection
then that element is said to be in both with no difference.leftProperty - rightProperty - ctx - void compareCollections(java.util.Collection leftCollection,
java.util.Collection rightCollection,
DiffContext ctx)
DbObjects using their DbObject#diff(DbObject, Differences) method.leftCollection - rightCollection - differences - void compareSimple(DbProperty left, DbProperty right, DiffContext ctx)
DbObject) objects using their Object.equals(Object) method
to decide if there is a difference.left - right - differences - Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.