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
.
Modifier and Type | Field and Description |
---|---|
static ChildPositionComparator |
INSTANCE |
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 static final ChildPositionComparator INSTANCE
public int compare(Page page0, Page page1)
compare
in interface Comparator<Page>
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences