DisplayOptions.Builder
public
static
class
DisplayOptions.Builder
extends Object
java.lang.Object | |
↳ | android.icu.text.DisplayOptions.Builder |
Responsible for building DisplayOptions
.
Summary
Public methods | |
---|---|
DisplayOptions
|
build()
Builds the display options. |
DisplayOptions.Builder
|
setCapitalization(DisplayOptions.Capitalization capitalization)
Sets the capitalization. |
DisplayOptions.Builder
|
setDisplayLength(DisplayOptions.DisplayLength displayLength)
Sets the display length. |
DisplayOptions.Builder
|
setGrammaticalCase(DisplayOptions.GrammaticalCase grammaticalCase)
Sets the grammatical case. |
DisplayOptions.Builder
|
setNameStyle(DisplayOptions.NameStyle nameStyle)
Sets the name style. |
DisplayOptions.Builder
|
setNounClass(DisplayOptions.NounClass nounClass)
Sets the noun class. |
DisplayOptions.Builder
|
setPluralCategory(DisplayOptions.PluralCategory pluralCategory)
Sets the plural category. |
DisplayOptions.Builder
|
setSubstituteHandling(DisplayOptions.SubstituteHandling substituteHandling)
Sets the substitute handling. |
Inherited methods | |
---|---|
Public methods
build
public DisplayOptions build ()
Builds the display options.
Returns | |
---|---|
DisplayOptions |
DisplayOptions |
setCapitalization
public DisplayOptions.Builder setCapitalization (DisplayOptions.Capitalization capitalization)
Sets the capitalization.
Parameters | |
---|---|
capitalization |
DisplayOptions.Capitalization : The capitalization. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setDisplayLength
public DisplayOptions.Builder setDisplayLength (DisplayOptions.DisplayLength displayLength)
Sets the display length.
Parameters | |
---|---|
displayLength |
DisplayOptions.DisplayLength : The display length. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setGrammaticalCase
public DisplayOptions.Builder setGrammaticalCase (DisplayOptions.GrammaticalCase grammaticalCase)
Sets the grammatical case.
Parameters | |
---|---|
grammaticalCase |
DisplayOptions.GrammaticalCase : The grammatical case. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setNameStyle
public DisplayOptions.Builder setNameStyle (DisplayOptions.NameStyle nameStyle)
Sets the name style.
Parameters | |
---|---|
nameStyle |
DisplayOptions.NameStyle : The name style. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setNounClass
public DisplayOptions.Builder setNounClass (DisplayOptions.NounClass nounClass)
Sets the noun class.
Parameters | |
---|---|
nounClass |
DisplayOptions.NounClass : The noun class. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setPluralCategory
public DisplayOptions.Builder setPluralCategory (DisplayOptions.PluralCategory pluralCategory)
Sets the plural category.
Parameters | |
---|---|
pluralCategory |
DisplayOptions.PluralCategory : The plural category. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |
setSubstituteHandling
public DisplayOptions.Builder setSubstituteHandling (DisplayOptions.SubstituteHandling substituteHandling)
Sets the substitute handling.
Parameters | |
---|---|
substituteHandling |
DisplayOptions.SubstituteHandling : The substitute handling. |
Returns | |
---|---|
DisplayOptions.Builder |
Builder |