public static enum MonetaryContext.AmountFlavor extends java.lang.Enum<MonetaryContext.AmountFlavor>
MonetaryAmount implementations.
This information can be additionally used to determine which
implementation type should be used, additionally to the other properties
and attributes in MonetaryContext.MonetaryAmounts.queryAmountType(MonetaryContext)| Enum Constant and Description |
|---|
PERFORMANCE
The implementation is optimized for fast results, but reduced
precision and scale, may be possible.
|
PRECISION
The implementation is optimized for precise results, not primarly for
performance.
|
UNDEFINED
The implementation has no defined flavor.
|
| Modifier and Type | Method and Description |
|---|---|
static MonetaryContext.AmountFlavor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MonetaryContext.AmountFlavor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonetaryContext.AmountFlavor PERFORMANCE
public static final MonetaryContext.AmountFlavor PRECISION
public static final MonetaryContext.AmountFlavor UNDEFINED
public static MonetaryContext.AmountFlavor valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic static MonetaryContext.AmountFlavor[] values()
for (MonetaryContext.AmountFlavor c : MonetaryContext.AmountFlavor.values()) System.out.println(c);