public class FieldByFieldComparator extends Object implements Comparator<Object>
Assertions.setAllowComparingPrivateFields(boolean)
has been called with false.Modifier and Type | Field and Description |
---|---|
protected Map<String,Comparator<?>> |
comparatorsByPropertyOrField |
protected TypeComparators |
comparatorsByType |
Constructor and Description |
---|
FieldByFieldComparator() |
FieldByFieldComparator(Map<String,Comparator<?>> comparatorsByPropertyOrField,
TypeComparators typeComparators) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areEqual(Object actual,
Object other) |
int |
compare(Object actual,
Object other) |
protected String |
describeFieldComparatorsByName() |
protected String |
describeFieldComparatorsByType() |
protected String |
describeUsedComparators() |
protected String |
description() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected final Map<String,Comparator<?>> comparatorsByPropertyOrField
protected final TypeComparators comparatorsByType
public FieldByFieldComparator(Map<String,Comparator<?>> comparatorsByPropertyOrField, TypeComparators typeComparators)
public FieldByFieldComparator()
public int compare(Object actual, Object other)
compare
in interface Comparator<Object>
protected String description()
protected String describeUsedComparators()
protected String describeFieldComparatorsByType()
protected String describeFieldComparatorsByName()
Copyright © 2014–2019 AssertJ. All rights reserved.