Package-level declarations
Core functions and types.
Types
Represents a circulating currency. De facto currencies, albeit not ISO-standardized, are also available (e.g., CNH
for Hong Kong's Renminbi).
Represents a cryptocurrency (also known as Digital Token).
Represents a currency, a system of money in common use within a specific environment over time.
Represents the type of Currency.
Represents a custom currency identified by a code. This object can be used to represent:
Represents a monetary value.
Represents a standardized currency. A StandardizedCurrency can be created with an ISO 4217 code (e.g., USD
for the United States Dollar, EUR
for the Euro, and so on) or with an ISO 24165 (Digital Token Identifier, e.g., 4H95J0R2X
for Bitcoin and X9J9K872S
for Ethereum) through the Currency.of method.
Functions
Decreases a given Money by this Percentage.
Decreases this Money by the given Percentage.
Increases a given Money by this Percentage.
Increases this Money by the given Percentage.
Transforms a collection of Number into Money based on this Currency. Calculations using them are rounded using a Rounding strategy configured with RoundingMode.HALF_EVEN.
Creates a Money based on this Number. Calculations using it are rounded using a Rounding strategy configured with RoundingMode.HALF_EVEN.
Shorthand for String.money.
Transforms a collection of Number into Money. Calculations using them are rounded using a Rounding strategy configured with RoundingMode.HALF_EVEN.
Creates a Money based on this Currency. Calculations using it are rounded using a Rounding strategy configured with the specified mode.
Transforms a collection of Number into Money based on this Currency. Calculations using them are rounded using a Rounding strategy configured with the specified mode.
Creates a Money based on this Number. Calculations using it are rounded using a Rounding strategy configured with the specified mode.
Transforms a collection of Number into Money. Calculations using it are rounded using a Rounding strategy configured with the specified mode.
Creates a Money based on this instance but with the monetary amount set to the smallest unit of the currency. Example:
Multiplies a given Money by this Percentage.
Multiplies this Money by the given Percentage.
Returns a string representation of the object, including all public properties.
Creates a Money based on this instance but with the monetary amount set to zero. Example: