Note this class is NOT thread-safe.
| Access | Constructor and Description |
|---|---|
| private | |
| private | RoundingQueryBuilder(RoundingQuery
the rounding query, used as a template, not null. roundingQuery)Creates a new RoundingQueryBuilder. |
| Modifier and Type | Method and Description |
|---|---|
| public RoundingQuery | Returns: a newjavax.money.RoundingQuery instance.Implements abstract javax. javax.money.RoundingQuery.
|
| public static RoundingQueryBuilder | |
| public static RoundingQueryBuilder | Returns: a newjavax.money.RoundingQueryBuilder instance, never null.the rounding query, used as a template, not null. roundingQuery)Creates a new RoundingQueryBuilder. |
| public RoundingQueryBuilder | Returns: this instance for chainingthe target currencyUnit)CurrencyUnit not null.Sets the target |
| public RoundingQueryBuilder | Returns: this instance for chainingthe (custom) rounding name expression, not roundingName)null.Sets the rounding names of the |
| public RoundingQueryBuilder |
| RoundingQueryBuilder | back to summary |
|---|---|
| private RoundingQueryBuilder() Default constructor. | |
| RoundingQueryBuilder | back to summary |
|---|---|
| private RoundingQueryBuilder(RoundingQuery roundingQuery) Creates a new RoundingQueryBuilder.
| |
| build | back to summary |
|---|---|
| public RoundingQuery build() Implements abstract javax. Creates a new instance of
| |
| of | back to summary |
|---|---|
public static RoundingQueryBuilder of()
| |
| of | back to summary |
|---|---|
| public static RoundingQueryBuilder of(RoundingQuery roundingQuery) Creates a new RoundingQueryBuilder.
| |
| setCurrency | back to summary |
|---|---|
| public RoundingQueryBuilder setCurrency(CurrencyUnit currencyUnit) Sets the target
| |
| setRoundingName | back to summary |
|---|---|
| public RoundingQueryBuilder setRoundingName(String roundingName) Sets the rounding names of the
| |
| setScale | back to summary |
|---|---|
| public RoundingQueryBuilder setScale(int scale) Sets the target scale. This allows to define the scale required. If not specified as additional attribute, by default, RoundingMode.HALF_EVEN is used hereby.
| |