Module java.money
Package javax.money.spi
Enum MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
- java.lang.Object
-
- java.lang.Enum<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
-
- javax.money.spi.MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>,java.lang.constant.Constable
- Enclosing interface:
- MonetaryAmountFactoryProviderSpi<T extends MonetaryAmount>
public static enum MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy extends java.lang.Enum<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
Determines how the factory should be considered when querying for matching implementation types callingMonetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYSAlways include this factory (and the corresponding amount type) within queries.DIRECT_REFERENCE_ONLYOnly consider this factory, when the implementation type is specified explicitly in theMonetaryContextrequired.NEVERNever consider this factory in a query for a matchingMonetaryAmountimplementation.
-
Method Summary
Modifier and Type Method Description static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicyvalueOf(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.
-
-
-
Enum Constant Detail
-
ALWAYS
public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy ALWAYS
Always include this factory (and the corresponding amount type) within queries. This is the default for normalMonetaryAmountimplementation types.
-
DIRECT_REFERENCE_ONLY
public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy DIRECT_REFERENCE_ONLY
Only consider this factory, when the implementation type is specified explicitly in theMonetaryContextrequired.
-
NEVER
public static final MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy NEVER
Never consider this factory in a query for a matchingMonetaryAmountimplementation.
-
-
Method Detail
-
values
public static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy[] 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
public static MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-