public class CustomFieldComparators extends Object
Constructor and Description |
---|
CustomFieldComparators() |
Modifier and Type | Method and Description |
---|---|
static Comparator<org.ofbiz.core.entity.GenericValue> |
byGvName()
Returns a comparator that compares custom field
GenericValue instances by name. |
static Comparator<CustomField> |
byName()
Returns a comparator that compares
CustomField instances by name. |
static Comparator<CustomField> |
byTranslatedName(Locale locale,
TranslationManager translationManager)
Returns a comparator that compares
CustomField instances by the translated customfield name, using the supplied locale. |
public static Comparator<CustomField> byName()
CustomField
instances by name.
This is sorted by the customfield's untranslated name to preserve existing behaviour.public static Comparator<CustomField> byTranslatedName(Locale locale, TranslationManager translationManager)
CustomField
instances by the translated customfield name, using the supplied locale.locale
- The locale to use for comparisontranslationManager
- The translation manger componentpublic static Comparator<org.ofbiz.core.entity.GenericValue> byGvName()
GenericValue
instances by name.Copyright © 2002-2021 Atlassian. All Rights Reserved.