DisplayOptions.NameStyle
public
static
final
enum
DisplayOptions.NameStyle
extends Enum<DisplayOptions.NameStyle>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.DisplayOptions.NameStyle> | |
↳ | android.icu.text.DisplayOptions.NameStyle |
Represents all the name styles.
Summary
Enum values | |
---|---|
DisplayOptions.NameStyle |
DIALECT_NAMES
Use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'. |
DisplayOptions.NameStyle |
STANDARD_NAMES
Use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'. |
DisplayOptions.NameStyle |
UNDEFINED
A possible setting for NameStyle. |
Fields | |
---|---|
public
static
final
List<DisplayOptions.NameStyle> |
VALUES
Unmodifiable List of all name styles constants. |
Public methods | |
---|---|
static
DisplayOptions.NameStyle
|
valueOf(String name)
|
static
final
NameStyle[]
|
values()
|
Inherited methods | |
---|---|
Enum values
DIALECT_NAMES
public static final DisplayOptions.NameStyle DIALECT_NAMES
Use dialect names, when generating a locale name, e.g. en_GB displays as 'British English'.
STANDARD_NAMES
public static final DisplayOptions.NameStyle STANDARD_NAMES
Use standard names when generating a locale name, e.g. en_GB displays as 'English (United Kingdom)'.
UNDEFINED
public static final DisplayOptions.NameStyle UNDEFINED
A possible setting for NameStyle. The NameStyle context to be used is unknown (this is the default value).
Fields
VALUES
public static final List<DisplayOptions.NameStyle> VALUES
Unmodifiable List of all name styles constants. List version of values()
.
Public methods
valueOf
public static DisplayOptions.NameStyle valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
DisplayOptions.NameStyle |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-06-18 UTC.