public class IgnoreDefaultsComparator extends Object implements Comparator
| Constructor and Description |
|---|
IgnoreDefaultsComparator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCompare(Object left,
Object right)
Returns true if the left object is a java default
|
Difference |
compare(Object left,
Object right,
boolean onlyFirstDifference,
ReflectionComparator reflectionComparator)
Always returns null: both objects are equal.
|
public boolean canCompare(Object left, Object right)
canCompare in interface Comparatorleft - The left objectright - The right objectpublic Difference compare(Object left, Object right, boolean onlyFirstDifference, ReflectionComparator reflectionComparator)
compare in interface Comparatorleft - 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.