Class CustomFieldComparators
java.lang.Object
com.atlassian.jira.issue.comparator.CustomFieldComparators
Utility class for dealing with custom fields.
- Since:
- v5.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Comparator<org.ofbiz.core.entity.GenericValue>
byGvName()
Returns a comparator that compares custom fieldGenericValue
instances by name.static Comparator<CustomField>
byName()
Returns a comparator that comparesCustomField
instances by name.static Comparator<CustomField>
byTranslatedName
(Locale locale, TranslationManager translationManager) Returns a comparator that comparesCustomField
instances by the translated customfield name, using the supplied locale.
-
Constructor Details
-
CustomFieldComparators
public CustomFieldComparators()
-
-
Method Details
-
byName
Returns a comparator that comparesCustomField
instances by name. This is sorted by the customfield's untranslated name to preserve existing behaviour.- Returns:
- a Comparator<CustomField>
-
byTranslatedName
public static Comparator<CustomField> byTranslatedName(Locale locale, TranslationManager translationManager) Returns a comparator that comparesCustomField
instances by the translated customfield name, using the supplied locale.- Parameters:
locale
- The locale to use for comparisontranslationManager
- The translation manger component- Returns:
- a Comparator<CustomField>
-
byGvName
Returns a comparator that compares custom fieldGenericValue
instances by name.- Returns:
- a Comparator<GenericValue>
-