public class PropertyComparator<E,T extends Comparable<T>> extends Object implements Comparator<E>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PropertyComparator.ValueResolver<E,T> |
| Constructor and Description |
|---|
PropertyComparator(String order,
PropertyComparator.ValueResolver<E,T> vResolver) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(E o1,
E 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(String order, PropertyComparator.ValueResolver<E,T> vResolver)
public int compare(E o1, E o2)
compare in interface Comparator<E>Copyright © 2019. All Rights Reserved.