DisplayOptions.NounClass
public
static
final
enum
DisplayOptions.NounClass
extends Enum<DisplayOptions.NounClass>
java.lang.Object | ||
↳ | java.lang.Enum<android.icu.text.DisplayOptions.NounClass> | |
↳ | android.icu.text.DisplayOptions.NounClass |
Represents all the grammatical noun classes that are supported by CLDR.
Summary
Enum values | |
---|---|
DisplayOptions.NounClass |
ANIMATE
|
DisplayOptions.NounClass |
COMMON
|
DisplayOptions.NounClass |
FEMININE
|
DisplayOptions.NounClass |
INANIMATE
|
DisplayOptions.NounClass |
MASCULINE
|
DisplayOptions.NounClass |
NEUTER
|
DisplayOptions.NounClass |
OTHER
|
DisplayOptions.NounClass |
PERSONAL
|
DisplayOptions.NounClass |
UNDEFINED
A possible setting for NounClass. |
Fields | |
---|---|
public
static
final
List<DisplayOptions.NounClass> |
VALUES
Unmodifiable List of all noun classes constants. |
Public methods | |
---|---|
static
DisplayOptions.NounClass
|
fromIdentifier(String identifier)
|
String
|
getIdentifier()
|
static
DisplayOptions.NounClass
|
valueOf(String name)
|
static
final
NounClass[]
|
values()
|
Inherited methods | |
---|---|
Enum values
UNDEFINED
public static final DisplayOptions.NounClass UNDEFINED
A possible setting for NounClass. The noun class context to be used is unknown (this is the default value).
Fields
VALUES
public static final List<DisplayOptions.NounClass> VALUES
Unmodifiable List of all noun classes constants. List version of values()
.
Public methods
fromIdentifier
public static DisplayOptions.NounClass fromIdentifier (String identifier)
Parameters | |
---|---|
identifier |
String : in lower case such as "feminine" or "masculine" |
Returns | |
---|---|
DisplayOptions.NounClass |
the plural category corresponding to the identifier, or UNDEFINED |
getIdentifier
public String getIdentifier ()
Returns | |
---|---|
String |
the lowercase CLDR keyword string for the noun class. |
valueOf
public static DisplayOptions.NounClass valueOf (String name)
Parameters | |
---|---|
name |
String |
Returns | |
---|---|
DisplayOptions.NounClass |
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.