public class FieldComparators extends Object
FieldLocation.| Constructor and Description |
|---|
FieldComparators() |
| Modifier and Type | Method and Description |
|---|---|
Stream<Map.Entry<FieldLocation,Comparator<?>>> |
comparatorByFields() |
boolean |
equals(Object obj) |
Comparator<?> |
getComparatorForField(FieldLocation fieldLocation) |
boolean |
hasComparatorForField(FieldLocation fieldLocation) |
int |
hashCode() |
boolean |
isEmpty() |
void |
registerComparator(FieldLocation fieldLocation,
Comparator<?> comparator)
Puts the
comparator for the given clazz. |
String |
toString() |
public void registerComparator(FieldLocation fieldLocation, Comparator<?> comparator)
comparator for the given clazz.fieldLocation - the FieldLocation where to apply the comparatorcomparator - the comparator it selfpublic boolean isEmpty()
true is there are registered comparators, false otherwisepublic boolean hasComparatorForField(FieldLocation fieldLocation)
public Comparator<?> getComparatorForField(FieldLocation fieldLocation)
public Stream<Map.Entry<FieldLocation,Comparator<?>>> comparatorByFields()
Copyright © 2014–2019 AssertJ. All rights reserved.