Added in API level 35
GrammaticalCase
class GrammaticalCase
kotlin.Any | ||
↳ | kotlin.Enum<android.icu.text.DisplayOptions.GrammaticalCase> | |
↳ | android.icu.text.DisplayOptions.GrammaticalCase |
Represents all the grammatical cases that are supported by CLDR.
Summary
Enum values | |
---|---|
A possible setting for GrammaticalCase. |
|
Public methods | |
---|---|
static DisplayOptions.GrammaticalCase! |
fromIdentifier(identifier: String!) |
String! |
Properties | |
---|---|
static MutableList<DisplayOptions.GrammaticalCase!>! |
Unmodifiable List of all grammatical cases constants. |
Enum values
LOCATIVE_COPULATIVE
Added in API level 35
enum val LOCATIVE_COPULATIVE : DisplayOptions.GrammaticalCase
UNDEFINED
Added in API level 35
enum val UNDEFINED : DisplayOptions.GrammaticalCase
A possible setting for GrammaticalCase. The grammatical case context to be used is unknown (this is the default value).
Public methods
fromIdentifier
Added in API level 35
static fun fromIdentifier(identifier: String!): DisplayOptions.GrammaticalCase!
Parameters | |
---|---|
identifier |
String!: in lower case such as "dative" or "nominative" |
Return | |
---|---|
DisplayOptions.GrammaticalCase! |
the plural category corresponding to the identifier, or UNDEFINED |
getIdentifier
Added in API level 35
fun getIdentifier(): String!
Return | |
---|---|
String! |
the lowercase CLDR keyword string for the grammatical case. |
Properties
VALUES
Added in API level 35
static val VALUES: MutableList<DisplayOptions.GrammaticalCase!>!
Unmodifiable List of all grammatical cases constants. List version of values()
.