com.atlassian.confluence.util
Class AttachmentComparator
java.lang.Object
com.atlassian.confluence.util.AttachmentComparator
- All Implemented Interfaces:
- java.util.Comparator
public class AttachmentComparator
- extends java.lang.Object
- implements java.util.Comparator
Constructor Summary |
AttachmentComparator(java.lang.String sortBy,
boolean reverse)
Create an AttachmentComparator that will sort by the specified field. |
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
|
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 |
FILENAME_SORT
public static final java.lang.String FILENAME_SORT
- See Also:
- Constant Field Values
COMMENT_SORT
public static final java.lang.String COMMENT_SORT
- See Also:
- Constant Field Values
MODIFICATION_DATE_SORT
public static final java.lang.String MODIFICATION_DATE_SORT
- See Also:
- Constant Field Values
CREATION_DATE_SORT
public static final java.lang.String CREATION_DATE_SORT
- See Also:
- Constant Field Values
SIZE_SORT
public static final java.lang.String SIZE_SORT
- See Also:
- Constant Field Values
AttachmentComparator
public AttachmentComparator(java.lang.String sortBy,
boolean reverse)
- 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.
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Specified by:
compare
in interface java.util.Comparator
Copyright © 2003-2010 Atlassian. All Rights Reserved.