public class OnFieldsComparator extends FieldByFieldComparator
comparatorsByPropertyOrField, comparatorsByType
Constructor and Description |
---|
OnFieldsComparator(Map<String,Comparator<?>> comparatorByPropertyOrField,
TypeComparators comparatorByType,
String... fields) |
OnFieldsComparator(String... fields) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areEqual(Object actualElement,
Object otherElement) |
protected String |
description() |
String[] |
getFields() |
compare, describeFieldComparatorsByName, describeFieldComparatorsByType, describeUsedComparators, 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
public OnFieldsComparator(Map<String,Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType, String... fields)
public OnFieldsComparator(String... fields)
public String[] getFields()
protected boolean areEqual(Object actualElement, Object otherElement)
areEqual
in class FieldByFieldComparator
protected String description()
description
in class FieldByFieldComparator
Copyright © 2014–2019 AssertJ. All rights reserved.