public enum LanguageComparator extends Enum<LanguageComparator>
| Enum Constant and Description |
|---|
ALPHABETICAL
Sorts the languages in alphabetical order.
|
ALPHABETICAL_VARIANTS_LAST
Sorts the languages in alphabetical order, but
put all variants after the main languages.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Comparator<String> |
build(List<String> variants)
Builds a comparator, that may take the given list of variants
into account.
|
static LanguageComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageComparator ALPHABETICAL
public static final LanguageComparator ALPHABETICAL_VARIANTS_LAST
public static LanguageComparator[] values()
for (LanguageComparator c : LanguageComparator.values()) System.out.println(c);
public static LanguageComparator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Comparator<String> build(List<String> variants)
variants - list of variantsALPHABETICAL_VARIANTS_LASTCopyright © 2013-2015. All Rights Reserved.