Top Description Fields Constructors Methods
javax.money

public final Class MonetaryAmountFactoryQuery

extends AbstractQuery
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Serializable

Query to lookup instances of MonetaryAmountFactory, which are determined by the (minimal) capabilities required by the give use case. By default amount factories can be queried by

This class is thread-safe, final and serializable.

See Also
Monetary#getAmountFactory(MonetaryAmountFactoryQuery), MonetaryAmountFactory

Field Summary

Modifier and TypeField and Description
private static final String
KEY_FIXED_SCALE

Key name for the currency provider.

private static final String
KEY_MAX_SCALE

Key name for the max scale.

private static final String
KEY_PRECISION

Key name for the context.

private static final long
Inherited from javax.money.AbstractQuery:
KEY_QUERY_PROVIDERSKEY_QUERY_TARGET_TYPEKEY_QUERY_TIMESTAMP

Constructor Summary

AccessConstructor and Description
pack-priv
MonetaryAmountFactoryQuery(MonetaryAmountFactoryQueryBuilder
the corresponding builder, not null.
builder
)

Constructor, used from the MonetaryAmountFactoryQueryBuilder.

Method Summary

Modifier and TypeMethod and Description
public Integer

Returns:

the maximal scale, or null, if this attribute must not be considered.
getMaxScale
()

Get the maximal scale to be supported.

public Integer

Returns:

the maximal precision, or null, if this attribute must not be considered.
getPrecision
()

Get the maximal precision to be supported.

public Boolean

Returns:

the fixed scale flag, or null, if this attribute must not be considered.
isFixedScale
()

Get the fixed scale flag to be supported.

public MonetaryAmountFactoryQueryBuilder

Returns:

a new MonetaryAmountFactoryQueryBuilder instance, never null.
toBuilder
()

Creates a new builder instances, initialized with the data from this one.

Inherited from javax.money.AbstractQuery:
getProviderNamesgetTargetType

Field Detail

KEY_FIXED_SCALEback to summary
private static final String KEY_FIXED_SCALE

Key name for the currency provider.

KEY_MAX_SCALEback to summary
private static final String KEY_MAX_SCALE

Key name for the max scale.

KEY_PRECISIONback to summary
private static final String KEY_PRECISION

Key name for the context.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.money.AbstractQuery.serialVersionUID.

Constructor Detail

MonetaryAmountFactoryQueryback to summary
pack-priv MonetaryAmountFactoryQuery(MonetaryAmountFactoryQueryBuilder builder)

Constructor, used from the MonetaryAmountFactoryQueryBuilder.

Parameters
builder:MonetaryAmountFactoryQueryBuilder

the corresponding builder, not null.

Method Detail

getMaxScaleback to summary
public Integer getMaxScale()

Get the maximal scale to be supported.

Returns:Integer

the maximal scale, or null, if this attribute must not be considered.

getPrecisionback to summary
public Integer getPrecision()

Get the maximal precision to be supported.

Returns:Integer

the maximal precision, or null, if this attribute must not be considered.

isFixedScaleback to summary
public Boolean isFixedScale()

Get the fixed scale flag to be supported. A fixed scale hereby means that the scale is always equal to the max scale (it could never be less).

Returns:Boolean

the fixed scale flag, or null, if this attribute must not be considered.

toBuilderback to summary
public MonetaryAmountFactoryQueryBuilder toBuilder()

Creates a new builder instances, initialized with the data from this one.

Returns:MonetaryAmountFactoryQueryBuilder

a new MonetaryAmountFactoryQueryBuilder instance, never null.