RoundingContext adding detailed information
about a MonetaryRounding instance.
Note this class is NOT thread-safe.
()
| Access | Constructor and Description |
|---|---|
| private | RoundingContextBuilder(String
the provider name, creating the corresponding provider, String MonetaryRounding
containing, not null.
the final RoundingContext created by this builder, not null.The name of the rounding, not null. roundingId)Creates a new builder. |
| private | RoundingContextBuilder(RoundingContext
the rounding context, used as a template, not null. roundingContext)Creates a new RoundingContextBuilder. |
| Modifier and Type | Method and Description |
|---|---|
| public RoundingContext | Returns: a newjavax.money.RoundingContext instance.Implements abstract javax. javax.money.RoundingContext.
|
| public static RoundingContextBuilder | Returns: a newjavax.money.MonetaryContextBuilder instance, never null.the provider name, creating the corresponding provider, String MonetaryRounding
containing, not null.
the final RoundingContext created by this builder, not null.The name of the rounding, not null. roundingId)Creates a new RoundingContextBuilder. |
| public static RoundingContextBuilder | Returns: a newjavax.money.MonetaryContextBuilder instance, never null.the rounding context, used as a template, not null. roundingContext)Creates a new RoundingContextBuilder. |
| public RoundingContextBuilder | Returns: the target CurrencyUnit, or null.the target currency unit not null. currencyUnit)Get the basic |
| RoundingContextBuilder | back to summary |
|---|---|
| private RoundingContextBuilder(String provider, String roundingId) Creates a new builder.
| |
| RoundingContextBuilder | back to summary |
|---|---|
| private RoundingContextBuilder(RoundingContext roundingContext) Creates a new RoundingContextBuilder.
| |
| build | back to summary |
|---|---|
| public RoundingContext build() Implements abstract javax. Creates a new instance of
| |
| of | back to summary |
|---|---|
| public static RoundingContextBuilder of(String provider, String roundingId) Creates a new RoundingContextBuilder.
| |
| of | back to summary |
|---|---|
| public static RoundingContextBuilder of(RoundingContext roundingContext) Creates a new RoundingContextBuilder.
| |
| setCurrency | back to summary |
|---|---|
| public RoundingContextBuilder setCurrency(CurrencyUnit currencyUnit) Get the basic
| |