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 calling
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant 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 theMonetaryContext
required.NEVER
Never consider this factory in a query for a matchingMonetaryAmount
implementation. -
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
ALWAYS
Always include this factory (and the corresponding amount type) within queries. This is the default for normalMonetaryAmount
implementation types. -
DIRECT_REFERENCE_ONLY
Only consider this factory, when the implementation type is specified explicitly in theMonetaryContext
required. -
NEVER
Never consider this factory in a query for a matchingMonetaryAmount
implementation.
-
-
Method Details
-
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
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
-