public
static
class
TtsSpan.MoneyBuilder
extends SemioticClassBuilder<TtsSpan.MoneyBuilder>
| java.lang.Object | |||
| ↳ | android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.MoneyBuilder> | ||
| ↳ | android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.MoneyBuilder> | ||
| ↳ | android.text.style.TtsSpan.MoneyBuilder | ||
A builder for TtsSpans of type TYPE_MONEY.
Public constructors | |
|---|---|
TtsSpan.MoneyBuilder()
Creates a TtsSpan of type |
|
Public methods | |
|---|---|
TtsSpan.MoneyBuilder
|
setCurrency(String currency)
Sets the |
TtsSpan.MoneyBuilder
|
setFractionalPart(String fractionalPart)
Sets the |
TtsSpan.MoneyBuilder
|
setIntegerPart(String integerPart)
Sets the |
TtsSpan.MoneyBuilder
|
setIntegerPart(long integerPart)
Convenience method that converts the number to a String and set it to
the value for |
TtsSpan.MoneyBuilder
|
setQuantity(String quantity)
Sets the |
Inherited methods | |
|---|---|
android.text.style.TtsSpan.SemioticClassBuilder
| |
android.text.style.TtsSpan.Builder
| |
java.lang.Object
| |
TtsSpan.MoneyBuilder ()
Creates a TtsSpan of type TYPE_MONEY.
TtsSpan.MoneyBuilder setCurrency (String currency)
Sets the ARG_CURRENCY argument.
| Parameters | |
|---|---|
currency |
String:
Should be a ISO4217 currency code, e.g. "USD". |
| Returns | |
|---|---|
TtsSpan.MoneyBuilder |
This instance. |
TtsSpan.MoneyBuilder setFractionalPart (String fractionalPart)
Sets the ARG_FRACTIONAL_PART argument.
| Parameters | |
|---|---|
fractionalPart |
String:
Can be a string of digits of any size. |
| Returns | |
|---|---|
TtsSpan.MoneyBuilder |
This instance. |
TtsSpan.MoneyBuilder setIntegerPart (String integerPart)
Sets the ARG_INTEGER_PART argument.
| Parameters | |
|---|---|
integerPart |
String:
A non-empty string of digits with an optional
leading + or -. |
| Returns | |
|---|---|
TtsSpan.MoneyBuilder |
This instance. |
TtsSpan.MoneyBuilder setIntegerPart (long integerPart)
Convenience method that converts the number to a String and set it to
the value for ARG_INTEGER_PART.
| Parameters | |
|---|---|
integerPart |
long:
The integer part of the amount. |
| Returns | |
|---|---|
TtsSpan.MoneyBuilder |
This instance. |
TtsSpan.MoneyBuilder setQuantity (String quantity)
Sets the ARG_QUANTITY argument.
| Returns | |
|---|---|
TtsSpan.MoneyBuilder |
This instance. |