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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public 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–2017 Alfresco Software. All rights reserved.