Package com.atlassian.confluence.util
Class SpaceComparator
- java.lang.Object
-
- com.atlassian.confluence.util.SpaceComparator
-
- All Implemented Interfaces:
Comparator<Space>
public class SpaceComparator extends Object implements Comparator<Space>
Order spaces by name, or by key if the names are the same.
-
-
Constructor Summary
Constructors Constructor Description SpaceComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Space space1, Space space2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(Space space1, Space space2)
- Specified by:
compare
in interfaceComparator<Space>
-
-