public static enum MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy extends Enum<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
.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(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[] values()
for (MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy c : MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy.values()) System.out.println(c);
public static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2016 JSR 354 - Expert Group. All rights reserved.