public interface Comparator
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCompare(Object left,
Object right)
Checks whether this comparator can compare the given objects.
|
Difference |
compare(Object left,
Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Compares the given objects and returns the difference (if any).
|
boolean canCompare(Object left, Object right)
left - The left objectright - The right objectDifference compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
left - The left objectright - The right objectonlyFirstDifference - True if only the first difference should be returnedreflectionComparator - The root comparator for inner comparisons, not nullCopyright © 2016. All Rights Reserved.