TtsSpan.CardinalBuilder
public
static
class
TtsSpan.CardinalBuilder
extends SemioticClassBuilder<TtsSpan.CardinalBuilder>
java.lang.Object | |||
↳ | android.text.style.TtsSpan.Builder<C extends android.text.style.TtsSpan.SemioticClassBuilder<?>> | ||
↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.CardinalBuilder> | ||
↳ | android.text.style.TtsSpan.CardinalBuilder |
A builder for TtsSpans of type TtsSpan.TYPE_CARDINAL
.
Summary
Public constructors | |
---|---|
CardinalBuilder()
Creates a builder for a TtsSpan of type |
|
CardinalBuilder(String number)
Creates a TtsSpan of type |
|
CardinalBuilder(long number)
Creates a TtsSpan of type |
Public methods | |
---|---|
TtsSpan.CardinalBuilder
|
setNumber(long number)
Convenience method that converts the number to a String and set it to
the value for |
TtsSpan.CardinalBuilder
|
setNumber(String number)
Sets the |
Inherited methods | |
---|---|
Public constructors
CardinalBuilder
public CardinalBuilder ()
Creates a builder for a TtsSpan of type TtsSpan.TYPE_CARDINAL
.
CardinalBuilder
public CardinalBuilder (String number)
Creates a TtsSpan of type TtsSpan.TYPE_CARDINAL
and sets the
TtsSpan.ARG_NUMBER
argument.
Parameters | |
---|---|
number |
String : The number to synthesize. |
See also:
CardinalBuilder
public CardinalBuilder (long number)
Creates a TtsSpan of type TtsSpan.TYPE_CARDINAL
and sets the
TtsSpan.ARG_NUMBER
argument.
Parameters | |
---|---|
number |
long : The number to synthesize. |
See also:
Public methods
setNumber
public TtsSpan.CardinalBuilder setNumber (long number)
Convenience method that converts the number to a String and set it to
the value for TtsSpan.ARG_NUMBER
.
Parameters | |
---|---|
number |
long : The number that will be synthesized. |
Returns | |
---|---|
TtsSpan.CardinalBuilder |
This instance. |
setNumber
public TtsSpan.CardinalBuilder 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.CardinalBuilder |
This instance. |