public class GenericComparator<T> extends BaseComparator<T>
| Modifier and Type | Field and Description |
|---|---|
protected String |
propertyPath |
| Constructor and Description |
|---|
GenericComparator(String propertyPath)
Be arware that if one of the elements in the list does not have the
memeber set addressed via propertyPath, an IllegalArgumentException will
occur.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T object1,
T object2) |
compareNullObjectsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected final String propertyPath
public GenericComparator(String propertyPath)
propertyPath - the path to the memeber which shall be compared.
E.g.: object.valueHolder.valueCopyright © 2020 Blazebit. All rights reserved.