public class Comparators extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Comparators.AttributeDescriptorComparator
This comparator is used to alphabetically sort attributedescriptors in a list.
|
static class |
Comparators.EnumerationValueByCodeComparator
This comparator is used to sort EnumerationValues alphabetically by code.
|
static class |
Comparators.EnumerationValueByNameComparator
This comparator is used to sort EnumerationValues alphabetically by name.
|
static class |
Comparators.LanguageComparator
Compares two languages by their isocodes.
|
static class |
Comparators.MenuEntryComparator
Compares two menu entries by their names.
|
static class |
Comparators.NodePositionComparator
This comparator is used to sort Nodes by their position.
|
| Constructor and Description |
|---|
Comparators() |
| Modifier and Type | Method and Description |
|---|---|
static Comparator |
getAttributeDescriptorComparator()
Returns a Comparator which compares two
AttributeDescriptors by their qualifiers. |
static Comparator |
getEnumerationValueComparator(boolean sortByName)
Returns a Comparator which compares two
EnumerationValues by their localized name or by
their code, depending on the 'sortByName' parameter. |
static Comparator |
getLanguageComparator()
Returns a Comparator which compares two
Languages by their isocodes. |
static Comparator |
getMenuEntryComparator() |
static Comparator |
getNodePositionComparator()
Returns a Comparator which compares two
Nodes by their position. |
static Comparator |
getTypeComparator()
Returns a Comparator which compares two
Types by their name (or by their code if the names are not
set). |
static Comparator |
getTypeComparator(boolean sortByCode)
Returns a Comparator which compares two
Types by their code or by their name. |
public static Comparator getMenuEntryComparator()
public static Comparator getLanguageComparator()
Languages by their isocodes.public static Comparator getTypeComparator()
Types by their name (or by their code if the names are not
set).public static Comparator getTypeComparator(boolean sortByCode)
Types by their code or by their name.sortByCode - if true the Types will be compared by their code, if false they will be compared by their names (or as a
fallback by code if the names are not set)public static Comparator getAttributeDescriptorComparator()
AttributeDescriptors by their qualifiers.public static Comparator getNodePositionComparator()
Nodes by their position.public static Comparator getEnumerationValueComparator(boolean sortByName)
EnumerationValues by their localized name or by
their code, depending on the 'sortByName' parameter.sortByName - if true the EnumerationValues will be compared by their localized names, if false their codes will be
comparedCopyright © 2017 SAP SE. All Rights Reserved.