MonetaryAmount instance.
| Modifier and Type | Field and Description |
|---|---|
| private static final MathContext | |
| private static final BigDecimal | |
| private final BigDecimal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryAmount | Returns: the permil result of the amount, nevernullImplements javax. Gets the permil of the amount. |
| private static BigDecimal | Returns: java.math.BigDecimaljava.math.BigDecimal decimal)Calculate a BigDecimal value for a Permil e.g. "3" (3 permil) will generate .003 |
| private static MathContext | |
| public String |
| DEFAULT_MATH_CONTEXT | back to summary |
|---|---|
| private static final MathContext DEFAULT_MATH_CONTEXT | |
| ONE_THOUSAND | back to summary |
|---|---|
| private static final BigDecimal ONE_THOUSAND | |
| permilValue | back to summary |
|---|---|
| private final BigDecimal permilValue | |
| PermilOperator | back to summary |
|---|---|
| pack-priv PermilOperator(final BigDecimal decimal) Access the shared instance of | |
| apply | back to summary |
|---|---|
| public MonetaryAmount apply(MonetaryAmount amount) Implements javax. Gets the permil of the amount. This returns the monetary amount in permil. For example, for 10% 'EUR 2.35' will return 0.235.
This is returned as a
| |
| calcPermil | back to summary |
|---|---|
| private static BigDecimal calcPermil(BigDecimal decimal) Calculate a BigDecimal value for a Permil e.g. "3" (3 permil) will generate .003
| |
| initDefaultMathContext | back to summary |
|---|---|
| private static MathContext initDefaultMathContext() Get
| |
| 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-
| |