public class NodePropertyComparator extends Object implements Comparator<Object>
| Constructor and Description |
|---|
NodePropertyComparator(String propertyName,
boolean isAscending) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object node1,
Object node2) |
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 NodePropertyComparator(String propertyName, boolean isAscending)
propertyName - the property name to sortisAscending - sort orderpublic int compare(Object node1, Object node2)
compare in interface Comparator<Object>Copyright © 2005–2018 Alfresco Software. All rights reserved.