Package org.joda.money.format
Enum MoneyFormatterBuilder.SingletonPrinters
java.lang.Object
java.lang.Enum<MoneyFormatterBuilder.SingletonPrinters>
org.joda.money.format.MoneyFormatterBuilder.SingletonPrinters
- All Implemented Interfaces:
Serializable
,Comparable<MoneyFormatterBuilder.SingletonPrinters>
,java.lang.constant.Constable
,MoneyPrinter
- Enclosing class:
MoneyFormatterBuilder
private static enum MoneyFormatterBuilder.SingletonPrinters
extends Enum<MoneyFormatterBuilder.SingletonPrinters>
implements MoneyPrinter
Handles the singleton outputs.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
print
(MoneyPrintContext context, Appendable appendable, BigMoney money) Prints part of a monetary value to the output appendable.toString()
Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LOCALIZED_SYMBOL
-
-
Constructor Details
-
SingletonPrinters
private SingletonPrinters()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
print
public void print(MoneyPrintContext context, Appendable appendable, BigMoney money) throws IOException Description copied from interface:MoneyPrinter
Prints part of a monetary value to the output appendable.The implementation determines what to append, which may be some or all of the data held in the
BigMoney
.The context is not a thread-safe object and a new instance will be created for each print. The context must not be stored in an instance variable or shared with any other threads.
- Specified by:
print
in interfaceMoneyPrinter
- Parameters:
context
- the context being used, not nullappendable
- the appendable to add to, not nullmoney
- the money to print, not null- Throws:
IOException
- if an IO exception occurs
-
toString
- Overrides:
toString
in classEnum<MoneyFormatterBuilder.SingletonPrinters>
-