public class Comparators
extends java.lang.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 java.util.Comparator |
getAttributeDescriptorComparator()
Returns a Comparator which compares two
AttributeDescriptors by their qualifiers. |
static java.util.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 java.util.Comparator |
getLanguageComparator()
Returns a Comparator which compares two
Languages by their isocodes. |
static java.util.Comparator |
getMenuEntryComparator() |
static java.util.Comparator |
getNodePositionComparator()
Returns a Comparator which compares two
Nodes by their position. |
static java.util.Comparator |
getTypeComparator()
Returns a Comparator which compares two
Types by their name (or by their code if the names are not
set). |
static java.util.Comparator |
getTypeComparator(boolean sortByCode)
Returns a Comparator which compares two
Types by their code or by their name. |
public static java.util.Comparator getMenuEntryComparator()
public static java.util.Comparator getLanguageComparator()
Languages by their isocodes.public static java.util.Comparator getTypeComparator()
Types by their name (or by their code if the names are not
set).public static java.util.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 java.util.Comparator getAttributeDescriptorComparator()
AttributeDescriptors by their qualifiers.public static java.util.Comparator getNodePositionComparator()
Nodes by their position.public static java.util.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.