public final class ToStringMonetaryAmountFormat extends Object implements javax.money.format.MonetaryAmountFormat
Money.toString()
Money.parse(CharSequence)
FastMoney.toString()
FastMoney.parse(CharSequence)
RoundedMoney.toString()
RoundedMoney.parse(CharSequence)
Modifier and Type | Class and Description |
---|---|
static class |
ToStringMonetaryAmountFormat.ToStringMonetaryAmountFormatStyle
indicates with implementation will used to format or parser in
ToStringMonetaryAmountFormat
|
Modifier and Type | Method and Description |
---|---|
javax.money.format.AmountFormatContext |
getContext() |
static ToStringMonetaryAmountFormat |
of(ToStringMonetaryAmountFormat.ToStringMonetaryAmountFormatStyle style) |
javax.money.MonetaryAmount |
parse(CharSequence text) |
void |
print(Appendable appendable,
javax.money.MonetaryAmount amount) |
String |
queryFrom(javax.money.MonetaryAmount amount) |
public static ToStringMonetaryAmountFormat of(ToStringMonetaryAmountFormat.ToStringMonetaryAmountFormatStyle style)
public String queryFrom(javax.money.MonetaryAmount amount)
queryFrom
in interface javax.money.MonetaryQuery<String>
public javax.money.format.AmountFormatContext getContext()
getContext
in interface javax.money.format.MonetaryAmountFormat
public void print(Appendable appendable, javax.money.MonetaryAmount amount) throws IOException
print
in interface javax.money.format.MonetaryAmountFormat
IOException
public javax.money.MonetaryAmount parse(CharSequence text) throws javax.money.format.MonetaryParseException
parse
in interface javax.money.format.MonetaryAmountFormat
javax.money.format.MonetaryParseException
Copyright © 2012-2016 JavaMoney. All Rights Reserved.