public static enum MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy extends java.lang.Enum<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
MonetaryAmounts.queryAmountType(MonetaryContext)
.Enum Constant and Description |
---|
ALWAYS
Always include this factory (and the corresponding amount type) within queries.
|
DIRECT_REFERENCE_ONLY
Only consider this factory, when the implementation type is specified explicitly in the
MonetaryContext required. |
NEVER
Never consider this factory in a query for a matching
MonetaryAmount
implementation. |
Modifier and Type | Method and Description |
---|---|
static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy ALWAYS
MonetaryAmount
implementation types.public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy DIRECT_REFERENCE_ONLY
MonetaryContext
required.public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy NEVER
MonetaryAmount
implementation.public static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy 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 MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy[] values()
for (MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy c : MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy.values()) System.out.println(c);