world.money.currency.currency_codes$package.NumericCode
Provides factory methods for creating instances of NumericCode.
Attributes
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Returns a NumericCode if the input Int is within the valid range.
Returns a NumericCode if the input Int is within the valid range.
Value parameters
-
value
-
An Int between 0 and 999 (inclusive).
Attributes
-
Returns
-
Right with a valid NumericCode on success, or Left with a errors.CurrencyError on failure.
-
Note
-
Only the range is checked (0-999). This method does not validate if the code corresponds to a known currency.
Provides compile-time safe equality checking for NumericCode instances.
Provides compile-time safe equality checking for NumericCode instances.
Attributes
The raw Int representation of the numeric currency code.
The raw Int representation of the numeric currency code.
Attributes