Top Description Constructors Methods
javax.money

public final Class MonetaryAmountFactoryQueryBuilder

extends AbstractQueryBuilder<MonetaryAmountFactoryQueryBuilder, MonetaryAmountFactoryQuery>
Class Inheritance
Imports
java.util.Objects

Builder class for creating new instances of MonetaryAmountFactoryQuery that can be passed to access MonetaryAmountFactory instances using a possible complex query.

Note this class is NOT thread-safe.

See Also
javax.money.Monetary#getAmountFactory(MonetaryAmountFactoryQuery), MonetaryAmountFactory

Constructor Summary

AccessConstructor and Description
private
MonetaryAmountFactoryQueryBuilder(MonetaryAmountFactoryQuery
MonetaryAmountFactoryQuery used for initializing this
monetaryAmountFactoryQuery
)

Creates a new instance of javax.money.CurrencyQueryBuilder.

private
MonetaryAmountFactoryQueryBuilder()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public MonetaryAmountFactoryQuery

Returns:

a new MonetaryAmountFactoryQuery instance.
build
()

Implements abstract javax.money.AbstractQueryBuilder.build.

Creates a new instance of MonetaryAmountFactoryQuery based on the values of this Builder.
public static MonetaryAmountFactoryQueryBuilder

Returns:

a new javax.money.CurrencyQueryBuilder instance, never null.
of
()

Creates a new instance of javax.money.CurrencyQueryBuilder.

public static MonetaryAmountFactoryQueryBuilder

Returns:

a new MonetaryAmountFactoryQueryBuilder instance, never null.
of
(MonetaryAmountFactoryQuery
MonetaryAmountFactoryQuery used for initializing this builder.
monetaryAmountFactoryQuery
)

Creates a new instance of javax.money.CurrencyQueryBuilder.

public MonetaryAmountFactoryQueryBuilder

Returns:

this Builder for chaining.
setFixedScale
(boolean
the fixed scale flag.
fixedScale
)

Sets the flag if the scale should fixed, meaning minimal scale and maximal scale are always equally sized.

public MonetaryAmountFactoryQueryBuilder

Returns:

this Builder for chaining.
setMaxScale
(int
the max scale, >= 0.
maxScale
)

Sets the maximal scale to be supported.

public MonetaryAmountFactoryQueryBuilder

Returns:

this Builder for chaining.
setPrecision
(int
the precision, >= 0, 0 meaning unlimited.
precision
)

Sets the required precision, the value 0 models unlimited precision.

Inherited from javax.money.AbstractQueryBuilder:
setsetProviderNamesetProviderNamessetProviderNamessetTargetType

Constructor Detail

MonetaryAmountFactoryQueryBuilderback to summary
private MonetaryAmountFactoryQueryBuilder(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery)

Creates a new instance of javax.money.CurrencyQueryBuilder.

Parameters
monetaryAmountFactoryQuery:MonetaryAmountFactoryQuery

MonetaryAmountFactoryQuery used for initializing this

MonetaryAmountFactoryQueryBuilderback to summary
private MonetaryAmountFactoryQueryBuilder()

Default constructor.

Method Detail

buildback to summary
public MonetaryAmountFactoryQuery build()

Implements abstract javax.money.AbstractQueryBuilder.build.

Creates a new instance of MonetaryAmountFactoryQuery based on the values of this Builder. Note that the Builder supports creation of several Builder instances from the a common Builder instance. But be aware that the keys and values contained are themselves not recursively cloned (deep-copy).

Returns:MonetaryAmountFactoryQuery

a new MonetaryAmountFactoryQuery instance.

ofback to summary
public static MonetaryAmountFactoryQueryBuilder of()

Creates a new instance of javax.money.CurrencyQueryBuilder.

Returns:MonetaryAmountFactoryQueryBuilder

a new javax.money.CurrencyQueryBuilder instance, never null.

ofback to summary
public static MonetaryAmountFactoryQueryBuilder of(MonetaryAmountFactoryQuery monetaryAmountFactoryQuery)

Creates a new instance of javax.money.CurrencyQueryBuilder.

Parameters
monetaryAmountFactoryQuery:MonetaryAmountFactoryQuery

MonetaryAmountFactoryQuery used for initializing this builder.

Returns:MonetaryAmountFactoryQueryBuilder

a new MonetaryAmountFactoryQueryBuilder instance, never null.

setFixedScaleback to summary
public MonetaryAmountFactoryQueryBuilder setFixedScale(boolean fixedScale)

Sets the flag if the scale should fixed, meaning minimal scale and maximal scale are always equally sized.

Parameters
fixedScale:boolean

the fixed scale flag.

Returns:MonetaryAmountFactoryQueryBuilder

this Builder for chaining.

setMaxScaleback to summary
public MonetaryAmountFactoryQueryBuilder setMaxScale(int maxScale)

Sets the maximal scale to be supported.

Parameters
maxScale:int

the max scale, >= 0.

Returns:MonetaryAmountFactoryQueryBuilder

this Builder for chaining.

setPrecisionback to summary
public MonetaryAmountFactoryQueryBuilder setPrecision(int precision)

Sets the required precision, the value 0 models unlimited precision.

Parameters
precision:int

the precision, >= 0, 0 meaning unlimited.

Returns:MonetaryAmountFactoryQueryBuilder

this Builder for chaining.