MonetaryAmountFactory, which are determined by the (minimal)
capabilities required by the give use case. By default amount factories can be queried by
javax.money.MonetaryAmount implementation type.This class is thread-safe, final and serializable.
Monetary#getAmountFactory(MonetaryAmountFactoryQuery), MonetaryAmountFactory
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| pack-priv | MonetaryAmountFactoryQuery(MonetaryAmountFactoryQueryBuilder
the corresponding builder, not null. builder)Constructor, used from the |
| Modifier and Type | Method and Description |
|---|---|
| public Integer | Returns: the maximal scale, or null, if this attribute must not be considered.Get the maximal scale to be supported. |
| public Integer | Returns: the maximal precision, or null, if this attribute must not be considered.Get the maximal precision to be supported. |
| public Boolean | Returns: the fixed scale flag, or null, if this attribute must not be considered.Get the fixed scale flag to be supported. |
| public MonetaryAmountFactoryQueryBuilder | Returns: a newMonetaryAmountFactoryQueryBuilder instance, never null.Creates a new builder instances, initialized with the data from this one. |
| KEY_FIXED_SCALE | back to summary |
|---|---|
| private static final String KEY_FIXED_SCALE Key name for the currency provider. | |
| KEY_MAX_SCALE | back to summary |
|---|---|
| private static final String KEY_MAX_SCALE Key name for the max scale. | |
| KEY_PRECISION | back to summary |
|---|---|
| private static final String KEY_PRECISION Key name for the context. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MonetaryAmountFactoryQuery | back to summary |
|---|---|
| pack-priv MonetaryAmountFactoryQuery(MonetaryAmountFactoryQueryBuilder builder) Constructor, used from the
| |
| getMaxScale | back to summary |
|---|---|
| public Integer getMaxScale() Get the maximal scale to be supported.
| |
| getPrecision | back to summary |
|---|---|
| public Integer getPrecision() Get the maximal precision to be supported.
| |
| isFixedScale | back 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).
| |
| toBuilder | back to summary |
|---|---|
| public MonetaryAmountFactoryQueryBuilder toBuilder() Creates a new builder instances, initialized with the data from this one.
| |