world.money.currency.currency_codes$package.CcyCode
Provides factory methods for creating instances of CcyCode .
Attributes
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Self type
Members list
Returns a CcyCode if the input String matches the required format.
Returns a CcyCode if the input String matches the required format.
Value parameters
value
The String to validate, e.g., "USD".
Attributes
Returns
Right with a valid CcyCode on success, or Left with a errors.CurrencyError on failure.
Note
The input is trimmed and converted to uppercase before validation. This method only validates that the input is a String of exactly three uppercase ASCII letters. It does not check if the code corresponds to a known currency.
Provides compile-time safe equality checking for CcyCode instances.
Provides compile-time safe equality checking for CcyCode instances.
Attributes
The raw 3-character String representation of the currency code.
The raw 3-character String representation of the currency code.
Attributes