Package com.atlassian.confluence.pages
Class ChildPositionComparator
- java.lang.Object
-
- com.atlassian.confluence.pages.ChildPositionComparator
-
- All Implemented Interfaces:
Comparator<Page>
public class ChildPositionComparator extends Object implements Comparator<Page>
A comparator used to sort pages based on the Page Ordering sort rules.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 theNaturalStringComparator
.
-
-
Field Summary
Fields Modifier and Type Field Description static ChildPositionComparator
INSTANCE
-
Constructor Summary
Constructors Constructor Description ChildPositionComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Page page0, Page page1)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
INSTANCE
public static final ChildPositionComparator INSTANCE
- Since:
- 7.15
-
-
Method Detail
-
compare
public int compare(Page page0, Page page1)
- Specified by:
compare
in interfaceComparator<Page>
-
-