public class

AttachmentFileNameComparator

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

Class Overview

Compares attachments based on the file's name.

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

See Also
  • java.text.Collator

Summary

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

Public Constructors

public AttachmentFileNameComparator (Locale userLocale)

Creates a new instance of this comparator with the provided locale

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

Public Methods

public int compare (Attachment a1, Attachment a2)