NumericCode

world.money.currency.currency_codes$package.NumericCode
object NumericCode

Provides factory methods for creating instances of NumericCode.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def from(value: Int): Either[CurrencyError, NumericCode]

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.

Givens

Givens

Provides compile-time safe equality checking for NumericCode instances.

Provides compile-time safe equality checking for NumericCode instances.

Attributes

Extensions

Extensions

extension (code: NumericCode)
def value: Int

The raw Int representation of the numeric currency code.

The raw Int representation of the numeric currency code.

Attributes