FormatToken which allows to format a MonetaryAmount type.
| Modifier and Type | Field and Description |
|---|---|
| private final AmountFormatContext | |
| private DecimalFormat | |
| private StringGrouper | |
| private DecimalFormat | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private int[] | |
| private void | |
| public AmountFormatContext | Returns: thejavax..Access the underlying amount format context. |
| public String | Returns: the number pattern used, nevernull.Get the number pattern used by this |
| private void | |
| public void | parse(ParseContext context)
Implements org. Parse the context, based on the given |
| private void | |
| public void | print(Appendable appendable, MonetaryAmount amount)
Implements org. Formats the given |
| private String[] | |
| public String |
| amountFormatContext | back to summary |
|---|---|
| private final AmountFormatContext amountFormatContext | |
| formatFormat | back to summary |
|---|---|
| private DecimalFormat formatFormat | |
| numberGroup | back to summary |
|---|---|
| private StringGrouper numberGroup | |
| parseFormat | back to summary |
|---|---|
| private DecimalFormat parseFormat | |
| partialNumberPattern | back to summary |
|---|---|
| private final String partialNumberPattern | |
| AmountNumberToken | back to summary |
|---|---|
| pack-priv AmountNumberToken(AmountFormatContext amountFormatContext, String partialNumberPattern) | |
| evalNumberRange | back to summary |
|---|---|
| private int[] evalNumberRange(String input) | |
| fixThousandsSeparatorWithSpace | back to summary |
|---|---|
| private void fixThousandsSeparatorWithSpace(DecimalFormatSymbols symbols) | |
| getAmountFormatContext | back to summary |
|---|---|
| public AmountFormatContext getAmountFormatContext() Access the underlying amount format context. | |
| getNumberPattern | back to summary |
|---|---|
| public String getNumberPattern() Get the number pattern used by this
| |
| initDecimalFormats | back to summary |
|---|---|
| private void initDecimalFormats() | |
| parse | back to summary |
|---|---|
| public void parse(ParseContext context) throws MonetaryParseException Implements org. Doc from org. Parse the context, based on the given
| |
| parseToken | back to summary |
|---|---|
| private void parseToken(ParseContext context) | |
| back to summary | |
|---|---|
| public void print(Appendable appendable, MonetaryAmount amount) throws IOException Implements org. Doc from org. Formats the given
| |
| splitNumberParts | back to summary |
|---|---|
| private String[] splitNumberParts(DecimalFormat format, String preformattedValue) | |
| 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-
| |