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.
Collator| Constructor and Description |
|---|
AttachmentFileNameComparator(Locale userLocale)
Creates a new instance of this comparator with the provided locale
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Attachment a1,
Attachment a2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic AttachmentFileNameComparator(Locale userLocale)
userLocale - The locale to be used to determine order of the file names.public int compare(Attachment a1, Attachment a2)
compare in interface Comparator<Attachment>Copyright © 2002-2017 Atlassian. All Rights Reserved.