MonetaryAmount
instance. Gets the amount in major units as a long.
For example, 'EUR 2.35' will return 2, and 'BHD -1.345' will return -1.
| Modifier and Type | Field and Description |
|---|---|
| private final MonetaryOperator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Long | Returns: the major units part of the amountImplements javax. Gets the amount in major units as a |
| downRounding | back to summary |
|---|---|
| private final MonetaryOperator downRounding | |
| ExtractorMajorPartQuery | back to summary |
|---|---|
| pack-priv ExtractorMajorPartQuery() Access the shared instance of | |
| queryFrom | back to summary |
|---|---|
| public Long queryFrom(MonetaryAmount amount) Implements javax. Gets the amount in major units as a This returns the monetary amount in terms of the major units of the currency, truncating the amount if necessary. For example, 'EUR 2.35' will return 2, and 'BHD -1.345' will return -1.
This method matches the API of
| |