Companion
Functions
Build an Amount from a decimal representation. For example, with an input of "12.34 GBP", returns an amount with a quantity of "1234" tokens. The function getDisplayTokenSize is used to determine the conversion scaling, for example bonds might be in nominal amounts of 100, currencies in 0.01 penny units.
Determines the representation of one Token quantity in BigDecimal. For Currency and Issued
Returns an amount that is equal to the given currency amount in text. Examples of what is supported:
Sums the amounts yielded by the given iterable, throwing an IllegalArgumentException if any of the token types are mismatched.