public class PropertyStringComparator extends Object implements Comparator<javax.jcr.Node>
Not having the expected property will be considered as a lesser value. When both nodes do not have the property they will be considered equal.
Constructor and Description |
---|
PropertyStringComparator(String propertyName) |
Modifier and Type | Method and Description |
---|---|
int |
compare(javax.jcr.Node node1,
javax.jcr.Node 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 PropertyStringComparator(String propertyName)
public int compare(javax.jcr.Node node1, javax.jcr.Node node2)
compare
in interface Comparator<javax.jcr.Node>
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.