public class

AttachmentFileNameCreationDateComparator

extends Object
implements Comparator<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.AttachmentFileNameCreationDateComparator

Class Overview

Compares attachments by file name first, and then creation date if the file names are the same.

File name comparison is handled using a java.text.Collator}, so that the results are locale-aware.

See Also
  • java.text.Collator

Summary

Public Constructors
AttachmentFileNameCreationDateComparator(Locale userLocale)
Creates a new instance of this attachment comparator.
Public Methods
int compare(Attachment a1, Attachment a2)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Comparator

Public Constructors

public AttachmentFileNameCreationDateComparator (Locale userLocale)

Creates a new instance of this attachment comparator.

Parameters
userLocale The locale to be used to determine order of the file names.

Public Methods

public int compare (Attachment a1, Attachment a2)