public final class PropertyComparator<T> extends Object implements Comparator<T>
PropertyMetaModel to define that property, and
a user-specific comparator to compare that value.| Constructor and Description |
|---|
PropertyComparator(PropertyMetaModel<T> pmm,
Comparator<T> comp,
boolean descending) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
clone, 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, thenComparingLongpublic PropertyComparator(@Nonnull PropertyMetaModel<T> pmm, @Nonnull Comparator<T> comp, boolean descending)
public int compare(T o1, T o2)
compare in interface Comparator<T>Copyright © 2017 etc.to. All rights reserved.