public class CreationDateComparator extends Object implements Comparator<javax.jcr.Node>
Not having the created property (NodeTypes.Created#getCreated(Node)
will return null
) will be
considered as a lesser value. When both nodes do not have the created property they will be considered equal.
NodeTypes.Created
Constructor and Description |
---|
CreationDateComparator() |
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 int compare(javax.jcr.Node node1, javax.jcr.Node node2)
compare
in interface Comparator<javax.jcr.Node>
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.