public static class TtsSpan.Builder<C extends TtsSpan.Builder<?>> extends Object
TtsSpan.TextBuilder
and
TtsSpan.CardinalBuilder
are likely more useful.
This class uses generics so methods from this class can return instances
of its child classes, resulting in a fluent API (CRTP pattern).Modifier and Type | Method and Description |
---|---|
TtsSpan |
build()
Returns a TtsSpan built from the parameters set by the setter
methods.
|
C |
setIntArgument(String arg,
int value)
Sets an argument to an int value.
|
C |
setLongArgument(String arg,
long value)
Sets an argument to a long value.
|
C |
setStringArgument(String arg,
String value)
Sets an argument to a string value.
|
public Builder(String type)
public TtsSpan build()
public C setStringArgument(String arg, String value)
arg
- The argument name.value
- The value the argument should be set to.public C setIntArgument(String arg, int value)
arg
- The argument name.value
- The value the argument should be set to.