Added in API level 35

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

Added in API level 35
public DisplayOptions build ()

Builds the display options.

Returns
DisplayOptions DisplayOptions

setCapitalization

Added in API level 35
public DisplayOptions.Builder setCapitalization (DisplayOptions.Capitalization capitalization)

Sets the capitalization.

Parameters
capitalization DisplayOptions.Capitalization: The capitalization.

Returns
DisplayOptions.Builder Builder

setDisplayLength

Added in API level 35
public DisplayOptions.Builder setDisplayLength (DisplayOptions.DisplayLength displayLength)

Sets the display length.

Parameters
displayLength DisplayOptions.DisplayLength: The display length.

Returns
DisplayOptions.Builder Builder

setGrammaticalCase

Added in API level 35
public DisplayOptions.Builder setGrammaticalCase (DisplayOptions.GrammaticalCase grammaticalCase)

Sets the grammatical case.

Parameters
grammaticalCase DisplayOptions.GrammaticalCase: The grammatical case.

Returns
DisplayOptions.Builder Builder

setNameStyle

Added in API level 35
public DisplayOptions.Builder setNameStyle (DisplayOptions.NameStyle nameStyle)

Sets the name style.

Parameters
nameStyle DisplayOptions.NameStyle: The name style.

Returns
DisplayOptions.Builder Builder

setNounClass

Added in API level 35
public DisplayOptions.Builder setNounClass (DisplayOptions.NounClass nounClass)

Sets the noun class.

Parameters
nounClass DisplayOptions.NounClass: The noun class.

Returns
DisplayOptions.Builder Builder

setPluralCategory

Added in API level 35
public DisplayOptions.Builder setPluralCategory (DisplayOptions.PluralCategory pluralCategory)

Sets the plural category.

Parameters
pluralCategory DisplayOptions.PluralCategory: The plural category.

Returns
DisplayOptions.Builder Builder

setSubstituteHandling

Added in API level 35
public DisplayOptions.Builder setSubstituteHandling (DisplayOptions.SubstituteHandling substituteHandling)

Sets the substitute handling.

Parameters
substituteHandling DisplayOptions.SubstituteHandling: The substitute handling.

Returns
DisplayOptions.Builder Builder