public class PropertyComparator extends Object implements Comparator<Object>
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object first,
Object second) |
static void |
sort(List<?> collection,
Sort sort)
Given a collection of objects, will sort them by taking the sort property into account.
|
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 int compare(Object first, Object second)
compare in interface Comparator<Object>Copyright © 2014–2016. All rights reserved.