MonetaryRoundedFactory once the RoundingMode, is possible
choose the scale, the number of digits to the right of the decimal point, and the precision, the total number of digits in a number or both.
MonetaryRoundedFactoryBuilder#withScale(int), MonetaryRoundedFactoryBuilder#withPrecision(int)
| Modifier and Type | Class and Description |
|---|---|
| public static class | MonetaryRoundedFactoryBuilder.
Once the |
| public static class | MonetaryRoundedFactoryBuilder.
Once the |
| public static class | MonetaryRoundedFactoryBuilder.
Once the |
| Modifier and Type | Field and Description |
|---|---|
| private final RoundingMode |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public MonetaryRoundedFactoryBuilder. | |
| public MonetaryRoundedFactoryBuilder. |
| roundingMode | back to summary |
|---|---|
| private final RoundingMode roundingMode | |
| MonetaryRoundedFactoryBuilder | back to summary |
|---|---|
| pack-priv MonetaryRoundedFactoryBuilder(RoundingMode roundingMode) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withPrecision | back to summary |
|---|---|
| public MonetaryRoundedFactoryBuilder. Set the total number of digits in a number
| |
| withScale | back to summary |
|---|---|
| public MonetaryRoundedFactoryBuilder. Set the number of digits to the right of the decimal point
| |
RoundingMode and precision informed, is possible create a MonetaryRoundedFactory
or set the number of scale.
MonetaryRoundedFactoryWithPrecisionBuilder#withScale(int), MonetaryRoundedFactoryWithPrecisionBuilder#build()
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final RoundingMode |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryRoundedFactory | build()
Make the |
| public MonetaryRoundedFactoryBuilder. | Returns: MonetaryRoundedFactoryWithPrecisionScaleBuilderthe scale scale)Set the number of digits to the right of the decimal point |
| precision | back to summary |
|---|---|
| private final int precision | |
| roundingMode | back to summary |
|---|---|
| private final RoundingMode roundingMode | |
| MonetaryRoundedFactoryWithPrecisionBuilder | back to summary |
|---|---|
| private MonetaryRoundedFactoryWithPrecisionBuilder(RoundingMode roundingMode, int precision) | |
| build | back to summary |
|---|---|
| public MonetaryRoundedFactory build() Make the | |
| withScale | back to summary |
|---|---|
| public MonetaryRoundedFactoryBuilder. Set the number of digits to the right of the decimal point
| |
RoundingMode, precision and scale informed, the next step will build a MonetaryRoundedFactory
with all these information.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final RoundingMode | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryRoundedFactory | build()
Make the |
| precision | back to summary |
|---|---|
| private int precision | |
| roundingMode | back to summary |
|---|---|
| private final RoundingMode roundingMode | |
| scale | back to summary |
|---|---|
| private int scale | |
| MonetaryRoundedFactoryWithPrecisionScaleBuilder | back to summary |
|---|---|
| public MonetaryRoundedFactoryWithPrecisionScaleBuilder(RoundingMode roundingMode) | |
| build | back to summary |
|---|---|
| public MonetaryRoundedFactory build() Make the | |
RoundingMode and scale informed, is possible create a MonetaryRoundedFactory
or set the number of precision.
MonetaryRoundedFactoryWithScaleBuilder#withPrecision(int), MonetaryRoundedFactoryWithScaleBuilder#build()
| Modifier and Type | Field and Description |
|---|---|
| private final RoundingMode | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryRoundedFactory | |
| public MonetaryRoundedFactoryBuilder. |
| roundingMode | back to summary |
|---|---|
| private final RoundingMode roundingMode | |
| scale | back to summary |
|---|---|
| private final int scale | |
| MonetaryRoundedFactoryWithScaleBuilder | back to summary |
|---|---|
| private MonetaryRoundedFactoryWithScaleBuilder(RoundingMode roundingMode, int scale) | |
| build | back to summary |
|---|---|
| public MonetaryRoundedFactory build() Make the | |
| withPrecision | back to summary |
|---|---|
| public MonetaryRoundedFactoryBuilder. Set the total number of digits in a number
| |