public class ChildPositionComparator extends Object implements Comparator<Page>
This comparator will compare the position of the two pages with null
smaller than anything else. If that comparison results in 0 a title based
"natural" sort will be used. For details on the Natural Sort algorithm
see the NaturalStringComparator
.
Constructor and Description |
---|
ChildPositionComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Page page0,
Page page1) |
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(Page page0, Page page1)
compare
in interface Comparator<Page>
Copyright © 2003–2017 Atlassian. All rights reserved.