Top Description Fields Constructors Methods
org.javamoney.moneta.format

public final Class AmountFormatParams

extends Object
Class Inheritance

Class holding constants for passing additional parameters to javax.money.MonetaryAmountFactoryQuery instances for configuring javax.money.format.MonetaryAmountFormat instances to be accessed.

Field Summary

Modifier and TypeField and Description
public static final String
GROUPING_GROUPING_SEPARATORS

Allows to define the grouping characters of a number groups as char[], hereby starting from the decimal point.

public static final String
GROUPING_SIZES

Allows to define the grouping sizes of the number groups as int[], hereby starting from the decimal point.

public static final String
PATTERN

Allows to pass a pattern as defined by java.text.DecimalFormat.

Constructor Summary

AccessConstructor and Description
private
AmountFormatParams()

Non instantiatable class.

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GROUPING_GROUPING_SEPARATORSback to summary
public static final String GROUPING_GROUPING_SEPARATORS

Allows to define the grouping characters of a number groups as char[], hereby starting from the decimal point. So '''',':','.' will format the number 1234567890 as 1'234:567.890, assuming 3 as the only grouping size. The grouping sizes used can be similarly adapted/combined, see #GROUPING_SIZES.

GROUPING_SIZESback to summary
public static final String GROUPING_SIZES

Allows to define the grouping sizes of the number groups as int[], hereby starting from the decimal point. So 2, 2, 3 will format the number 1234567890 as 123.456.78.90, assuming '.' as the only grouping char. The grouping chars used can be similarly adapted/combined, see #GROUPING_GROUPING_SEPARATORS.

PATTERNback to summary
public static final String PATTERN

Allows to pass a pattern as defined by java.text.DecimalFormat.

Constructor Detail

AmountFormatParamsback to summary
private AmountFormatParams()

Non instantiatable class.