FormatToken which adds an arbitrary literal constant value to the
output.
This class is thread safe, immutable and serializable.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
serialVersionUID. |
| private final String | token
The literal part. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | parse(ParseContext context)
Implements org. Parses the literal from the current |
| public void | print(Appendable appendable, MonetaryAmount amount)
Implements org. Prints the amount to the |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID serialVersionUID. | |
| token | back to summary |
|---|---|
| private final String token The literal part. | |
| LiteralToken | back to summary |
|---|---|
| pack-priv LiteralToken(String token) Creates a new
| |
| parse | back to summary |
|---|---|
| public void parse(ParseContext context) throws MonetaryParseException Implements org. Parses the literal from the current
| |
| back to summary | |
|---|---|
| public void print(Appendable appendable, MonetaryAmount amount) throws IOException Implements org. Prints the amount to the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |