Stay organized with collections
Save and categorize content based on your preferences.
PluralCategory
class PluralCategory
Standard CLDR plural category constants. See http://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules
Summary
Enum values |
|
|
|
|
|
A possible setting for PluralCategory.
|
|
Enum values
UNDEFINED
enum val UNDEFINED : DisplayOptions.PluralCategory
A possible setting for PluralCategory. The plural category context to be used is unknown (this is the default value).
Public methods
getIdentifier
fun getIdentifier(): String!
Return |
String! |
the lowercase CLDR keyword string for the plural category |
Properties
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 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DisplayOptions.PluralCategory\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPluralCategory\n==============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/DisplayOptions.PluralCategory \"View this page in Java\") \n\n```\nclass PluralCategory\n```\n\n|---|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.DisplayOptions.PluralCategory](#)\\\u003e ||\n| | ↳ | [android.icu.text.DisplayOptions.PluralCategory](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [DisplayOptions.PluralCategory.FEW](#ENUM_VALUE:FEW), [DisplayOptions.PluralCategory.MANY](#ENUM_VALUE:MANY), [DisplayOptions.PluralCategory.ONE](#ENUM_VALUE:ONE), [DisplayOptions.PluralCategory.OTHER](#ENUM_VALUE:OTHER), [DisplayOptions.PluralCategory.TWO](#ENUM_VALUE:TWO), [DisplayOptions.PluralCategory.UNDEFINED](#ENUM_VALUE:UNDEFINED), [DisplayOptions.PluralCategory.ZERO](#ENUM_VALUE:ZERO) |------------------------------------------------------------------|----------------------------------------| | [DisplayOptions.PluralCategory.FEW](#ENUM_VALUE:FEW) | \u003cbr /\u003e | | [DisplayOptions.PluralCategory.MANY](#ENUM_VALUE:MANY) | \u003cbr /\u003e | | [DisplayOptions.PluralCategory.ONE](#ENUM_VALUE:ONE) | \u003cbr /\u003e | | [DisplayOptions.PluralCategory.OTHER](#ENUM_VALUE:OTHER) | \u003cbr /\u003e | | [DisplayOptions.PluralCategory.TWO](#ENUM_VALUE:TWO) | \u003cbr /\u003e | | [DisplayOptions.PluralCategory.UNDEFINED](#ENUM_VALUE:UNDEFINED) | A possible setting for PluralCategory. | | [DisplayOptions.PluralCategory.ZERO](#ENUM_VALUE:ZERO) | \u003cbr /\u003e | |\n\nStandard CLDR plural category constants. See http://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------------------------------|---|\n| [FEW](#ENUM_VALUE:FEW) \u003cbr /\u003e |\n| [MANY](#ENUM_VALUE:MANY) \u003cbr /\u003e |\n| [ONE](#ENUM_VALUE:ONE) \u003cbr /\u003e |\n| [OTHER](#ENUM_VALUE:OTHER) \u003cbr /\u003e |\n| [TWO](#ENUM_VALUE:TWO) \u003cbr /\u003e |\n| [UNDEFINED](#ENUM_VALUE:UNDEFINED) A possible setting for PluralCategory. |\n| [ZERO](#ENUM_VALUE:ZERO) \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [DisplayOptions.PluralCategory](#)! | [fromIdentifier](#fromIdentifier(kotlin.String))`(`identifier:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getIdentifier](#getIdentifier())`()` \u003cbr /\u003e |\n\n| Properties ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|\n| static [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[DisplayOptions.PluralCategory](#)!\\\u003e! | [VALUES](#VALUES:kotlin.collections.MutableList) Unmodifiable List of all plural categories constants. |\n\nEnum values\n-----------\n\n### FEW\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val FEW : DisplayOptions.PluralCategory\n``` \n\n### MANY\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val MANY : DisplayOptions.PluralCategory\n``` \n\n### ONE\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ONE : DisplayOptions.PluralCategory\n``` \n\n### OTHER\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OTHER : DisplayOptions.PluralCategory\n``` \n\n### TWO\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val TWO : DisplayOptions.PluralCategory\n``` \n\n### UNDEFINED\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNDEFINED : DisplayOptions.PluralCategory\n```\n\nA possible setting for PluralCategory. The plural category context to be used is unknown (this is the default value). \n\n### ZERO\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val ZERO : DisplayOptions.PluralCategory\n```\n\nPublic methods\n--------------\n\n### fromIdentifier\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun fromIdentifier(identifier: String!): DisplayOptions.PluralCategory!\n```\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------------|\n| `identifier` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!: in lower case such as \"few\" or \"other\" |\n\n| Return ||\n|-------------------------------------|---------------------------------------------------------------------|\n| [DisplayOptions.PluralCategory](#)! | the plural category corresponding to the identifier, or `UNDEFINED` |\n\n### getIdentifier\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getIdentifier(): String!\n```\n\n| Return ||\n|-----------------------------------------------------------------------------------|-----------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the lowercase CLDR keyword string for the plural category |\n\nProperties\n----------\n\n### VALUES\n\nAdded in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val VALUES: MutableList\u003cDisplayOptions.PluralCategory!\u003e!\n```\n\nUnmodifiable List of all plural categories constants. List version of [values()](#)."]]