TtsSpan.OrdinalBuilder


public static class TtsSpan.OrdinalBuilder
extends SemioticClassBuilder<TtsSpan.OrdinalBuilder>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.OrdinalBuilder>
       ↳ android.text.style.TtsSpan.OrdinalBuilder


A builder for TtsSpans of type TtsSpan.TYPE_ORDINAL.

Summary

Public constructors

OrdinalBuilder()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_ORDINAL.

OrdinalBuilder(long number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

OrdinalBuilder(String number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Public methods

TtsSpan.OrdinalBuilder setNumber(long number)

Convenience method that converts the number to a String and sets it to the value for TtsSpan.ARG_NUMBER.

TtsSpan.OrdinalBuilder setNumber(String number)

Sets the TtsSpan.ARG_NUMBER argument.

Inherited methods

Public constructors

OrdinalBuilder

Added in API level 21
public OrdinalBuilder ()

Creates a builder for a TtsSpan of type TtsSpan.TYPE_ORDINAL.

OrdinalBuilder

Added in API level 21
public OrdinalBuilder (long number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Parameters
number long: The ordinal number to synthesize.

See also:

OrdinalBuilder

Added in API level 21
public OrdinalBuilder (String number)

Creates a TtsSpan of type TtsSpan.TYPE_ORDINAL and sets the TtsSpan.ARG_NUMBER argument.

Parameters
number String: The number to synthesize.

See also:

Public methods

setNumber

Added in API level 21
public TtsSpan.OrdinalBuilder setNumber (long number)

Convenience method that converts the number to a String and sets it to the value for TtsSpan.ARG_NUMBER.

Parameters
number long: The ordinal number that will be synthesized.

Returns
TtsSpan.OrdinalBuilder This instance.

setNumber

Added in API level 21
public TtsSpan.OrdinalBuilder setNumber (String number)

Sets the TtsSpan.ARG_NUMBER argument.

Parameters
number String: A non-empty string of digits with an optional leading + or -.

Returns
TtsSpan.OrdinalBuilder This instance.