Class DisplayOptions
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.text.DisplayOptions
Represents all the display options that are supported by CLDR such as grammatical case, noun
class, ... etc. It currently supports enums, but may be extended in the future to have other
types of data. It replaces a DisplayContext[] as a method parameter.
NOTE: This class is Immutable, and uses a Builder interface.
For example:
DisplayOptions x =
DisplayOptions.builder()
.setNounClass(NounClass.DATIVE)
.setPluralCategory(PluralCategory.FEW)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponsible for buildingDisplayOptions.static enumRepresents all the capitalization options.static enumRepresents all the display lengths.static enumRepresents all the grammatical cases that are supported by CLDR.static enumRepresents all the name styles.static enumRepresents all the grammatical noun classes that are supported by CLDR.static enumStandard CLDR plural category constants.static enumRepresents all the substitute handlings. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayOptions.Builderbuilder()Creates a builder with theUNDEFINEDvalue for all the parameters.Creates a builder with the same parameters from this object.Gets the capitalization.Gets the display length.Gets the grammatical case.Gets the name style.Gets the noun class.Gets the plural category.Gets the substitute handling.
-
Method Details
-
builder
Creates a builder with theUNDEFINEDvalue for all the parameters.- Returns:
- Builder
-
copyToBuilder
Creates a builder with the same parameters from this object.- Returns:
- Builder
-
getGrammaticalCase
Gets the grammatical case.- Returns:
- GrammaticalCase
-
getNounClass
-
getPluralCategory
Gets the plural category.- Returns:
- PluralCategory
-
getCapitalization
Gets the capitalization.- Returns:
- Capitalization
-
getNameStyle
-
getDisplayLength
Gets the display length.- Returns:
- DisplayLength
-
getSubstituteHandling
Gets the substitute handling.- Returns:
- SubstituteHandling
-