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 |
|
OrdinalBuilder(String number)
Creates a TtsSpan of type |
|
OrdinalBuilder(long number)
Creates a TtsSpan of type |
Public methods | |
---|---|
TtsSpan.OrdinalBuilder
|
setNumber(long number)
Convenience method that converts the number to a String and sets it
to the value for |
TtsSpan.OrdinalBuilder
|
setNumber(String number)
Sets the |
Inherited methods | |
---|---|
Public constructors
OrdinalBuilder
public OrdinalBuilder ()
Creates a builder for a TtsSpan of type TtsSpan.TYPE_ORDINAL
.
OrdinalBuilder
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:
OrdinalBuilder
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:
Public methods
setNumber
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
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. |