MonetaryAmount
instance.
| Modifier and Type | Field and Description |
|---|---|
| private static final BigDecimal | |
| private final BigDecimal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public MonetaryAmount | Returns: the percent result of the amount, nevernullImplements javax. Gets the percentage of the amount. |
| private static BigDecimal | Returns: java.math.BigDecimaljava.math.BigDecimal decimal)Calculate a BigDecimal value for a Percent e.g. "3" (3 percent) will generate .03 |
| public String |
| ONE_HUNDRED | back to summary |
|---|---|
| private static final BigDecimal ONE_HUNDRED | |
| percentValue | back to summary |
|---|---|
| private final BigDecimal percentValue | |
| PercentOperator | back to summary |
|---|---|
| pack-priv PercentOperator(final BigDecimal decimal) Access the shared instance of | |
| apply | back to summary |
|---|---|
| public MonetaryAmount apply(MonetaryAmount amount) Implements javax. Gets the percentage of the amount. This returns the monetary amount in percent. For example, for 10% 'EUR 2.35' will return 0.235.
This is returned as a
| |
| calcPercent | back to summary |
|---|---|
| private static BigDecimal calcPercent(BigDecimal decimal) Calculate a BigDecimal value for a Percent e.g. "3" (3 percent) will generate .03
| |
| 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-
| |