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:
Serializable,Comparable<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
- Enclosing interface:
MonetaryAmountFactoryProviderSpi<T extends MonetaryAmount>
public static enum MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy
extends Enum<MonetaryAmountFactoryProviderSpi.QueryInclusionPolicy>
Determines how the factory should be considered when querying for matching implementation
types calling
Monetary.getAmountFactory(javax.money.MonetaryAmountFactoryQuery) .- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways include this factory (and the corresponding amount type) within queries.Only consider this factory, when the implementation type is specified explicitly in theMonetaryContextrequired.Never consider this factory in a query for a matchingMonetaryAmountimplementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.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 normalMonetaryAmountimplementation types. -
DIRECT_REFERENCE_ONLY
Only consider this factory, when the implementation type is specified explicitly in theMonetaryContextrequired. -
NEVER
Never consider this factory in a query for a matchingMonetaryAmountimplementation.
-
-
Constructor Details
-
QueryInclusionPolicy
private QueryInclusionPolicy()
-
-
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-