Class AttachmentFileNameCreationDateComparator
java.lang.Object
com.atlassian.jira.issue.attachment.AttachmentFileNameCreationDateComparator
- All Implemented Interfaces:
- Comparator<Attachment>
public class AttachmentFileNameCreationDateComparator
extends Object
implements Comparator<Attachment>
Compares attachments by file name first, and then creation date if the file names are the same.
 File name comparison is handled using a Collator}, so that the results are locale-aware.
 
- Since:
- v4.2
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAttachmentFileNameCreationDateComparator(Locale userLocale) Creates a new instance of this attachment comparator.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
AttachmentFileNameCreationDateComparatorCreates a new instance of this attachment comparator.- Parameters:
- userLocale- The locale to be used to determine order of the file names.
 
 
- 
- 
Method Details- 
compare- Specified by:
- comparein interface- Comparator<Attachment>
 
 
-