Package com.atlassian.confluence.util
Class AttachmentComparator
java.lang.Object
com.atlassian.confluence.util.AttachmentComparator
- All Implemented Interfaces:
Comparator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentComparator
(String sortBy, boolean reverse) Create an AttachmentComparator that will sort by the specified field. -
Method Summary
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 Details
-
FILENAME_SORT
- See Also:
-
COMMENT_SORT
- See Also:
-
MODIFICATION_DATE_SORT
- See Also:
-
CREATION_DATE_SORT
- See Also:
-
SIZE_SORT
- See Also:
-
-
Constructor Details
-
AttachmentComparator
Create an AttachmentComparator that will sort by the specified field.- Parameters:
sortBy
- the field to sort on. If null, or unknown then the default behaviour will be to sort on name.reverse
- reverse the order of the sort.
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-