StaticUSDStaticEURStaticGBPStaticJPYStaticCNYStaticCADStaticAUDStaticCHFStaticINRStaticBRLStaticMXNStaticCLPStaticCOPStaticPENStaticARSCompares this Value Object with another for equality. Value Objects are equal if they are of the same type and all equality components match.
The other Value Object to compare with
true if the Value Objects are equal, false otherwise
StaticfromCreates a Currency instance from a currency code. Uses data from CountryRegistry to populate currency information.
The ISO 4217 currency code (e.g., "USD", "EUR")
Currency instance or undefined if not found
Checks if this is a major world currency. Major currencies are those widely used in international trade and finance.
true if this is a major currency
Checks if this currency uses decimal places.
true if the currency uses decimal places
ProtectedgetReturns the components that determine equality for this Value Object. Two Value Objects are equal if all their equality components are equal.
An array of values used for equality comparison
Returns a string representation of an object.
Represents a currency code following ISO 4217 standard.
Currency instances are created from the CountryRegistry which provides comprehensive currency information including symbols and decimal places.
Example