MonetaryContext adding detailed information
about a MonetaryAmount instance.
Note this class is NOT thread-safe.
javax.money.MonetaryAmount#getContext()
| Access | Constructor and Description |
|---|---|
| private | |
| private | MonetaryContextBuilder(Class<? extends MonetaryAmount>
the target amount type, not null. amountType)Creates a new builder, hereby the target implementation type is required. |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryContext | Returns: a newMonetaryAmountFactoryQuery instance.Implements abstract javax. MonetaryAmountFactoryQuery.
|
| public static MonetaryContextBuilder | Returns: a newjavax.money.MonetaryContextBuilder instance, never null.Creates a new builder, hereby the target implementation type is required. |
| public static MonetaryContextBuilder | Returns: a newjavax.money.MonetaryContextBuilder instance, never null.Creates a new builder, using an existing |
| public static MonetaryContextBuilder | Returns: a newjavax.money.MonetaryContextBuilder instance, never null.the target amount type, not null. amountType)Creates a new builder, hereby the target implementation type is required. |
| public MonetaryContextBuilder | Returns: the implementation class of the containing amount instance, never null.the target amount type, not null. amountType)Set the MonetaryAmount implementation class. |
| public MonetaryContextBuilder | Returns: this builder for chaining.the fixed scale flag. fixedScale)Set the flag if the scale should fixed. |
| public MonetaryContextBuilder | Returns: this builder for chaining.the max scale, >= 0. maxScale)Set the maximal scale to be supported. |
| public MonetaryContextBuilder | Returns: this builder for chaining.the precision, >= 0, 0 meaning unlimited. precision)Set the required precision. |
| MonetaryContextBuilder | back to summary |
|---|---|
| private MonetaryContextBuilder(MonetaryContext monetaryContext) | |
| MonetaryContextBuilder | back to summary |
|---|---|
| private MonetaryContextBuilder(Class<? extends MonetaryAmount> amountType) Creates a new builder, hereby the target implementation type is required. This can be used to explicitly acquire a specific amount type and additionally configure the amount factory with the attributes in this query.
| |
| build | back to summary |
|---|---|
| public MonetaryContext build() Implements abstract javax. Creates a new instance of
| |
| of | back to summary |
|---|---|
| public static MonetaryContextBuilder of() Creates a new builder, hereby the target implementation type is required. This can be used to explicitly acquire a specific amount type and additionally configure the amount factory with the attributes in this query.
| |
| of | back to summary |
|---|---|
| public static MonetaryContextBuilder of(MonetaryContext monetaryContext) Creates a new builder, using an existing
| |
| of | back to summary |
|---|---|
| public static MonetaryContextBuilder of(Class<? extends MonetaryAmount> amountType) Creates a new builder, hereby the target implementation type is required. This can be used to explicitly acquire a specific amount type and additionally configure the amount factory with the attributes in this query.
| |
| setAmountType | back to summary |
|---|---|
| public MonetaryContextBuilder setAmountType(Class<? extends MonetaryAmount> amountType) Set the MonetaryAmount implementation class.
| |
| setFixedScale | back to summary |
|---|---|
| public MonetaryContextBuilder setFixedScale(boolean fixedScale) Set the flag if the scale should fixed.
| |
| setMaxScale | back to summary |
|---|---|
| public MonetaryContextBuilder setMaxScale(int maxScale) Set the maximal scale to be supported.
| |
| setPrecision | back to summary |
|---|---|
| public MonetaryContextBuilder setPrecision(int precision) Set the required precision.
| |