public interface

SortableCustomField

com.atlassian.jira.issue.customfields.SortableCustomField<T>
Known Indirect Subclasses

Class Overview

Allow a custom field to be natively sortable in the Issue Navigator. Warning: This sort method is a fallback. Generally custom fields will have an associated CustomFieldSearcher, whose getSorter(com.atlassian.jira.issue.fields.CustomField) method is responsible for sorting. This interface's compare() is only called if no searcher is associated with a custom field. It is an order of magnitude slower than SortableCustomFieldSearcher.

Summary

Public Methods
int compare(T customFieldObjectValue1, T customFieldObjectValue2, FieldConfig fieldConfig)
Compares the two custom field objects.

Public Methods

public int compare (T customFieldObjectValue1, T customFieldObjectValue2, FieldConfig fieldConfig)

Compares the two custom field objects.

Parameters
customFieldObjectValue1 Never null
customFieldObjectValue2 Never null
Returns
  • 0, 1 or -1