- All Implemented Interfaces:
public class AttachmentFileNameComparator
- extends Object
- implements Comparator<Attachment>
Compares attachments based on the file's name.
The comparison is handled using a
Collator}, so that the results are locale-aware.
- See Also:
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AttachmentFileNameComparator(Locale userLocale)
- Creates a new instance of this comparator with the provided locale
userLocale - The locale to be used to determine order of the file names.
public int compare(Attachment a1,
- Specified by:
compare in interface
Copyright © 2002-2012 Atlassian. All Rights Reserved.