ca.mint.mintchip.contract

Class CurrencyCode

  • java.lang.Object
    • ca.mint.mintchip.contract.CurrencyCode

public class CurrencyCode extends java.lang.Object

This class represents various currencies supported by MintChip.

Fields
Modifier and Type Field and Description
static CurrencyCode AUD

Represents Australian dollar.

static CurrencyCode CAD

Represents Canadian dollar.

static CurrencyCode CHF

Represents Swiss franc.

static CurrencyCode EUR

Represents euro.

static CurrencyCode GBP

Represents British pound.

static CurrencyCode INR

Represents Indian rupee.

static CurrencyCode JPY

Represents Japanese yen.

static CurrencyCode RUB

Represents Russian ruble.

static CurrencyCode USD

Represents US dollar.

Constructors
Constructor and Description
CurrencyCode(int currencyCode)

Initializes this CurrencyCode with the integer representation of a CurrencyCode.

Methods
Modifier and Type Method and Description
boolean equals(java.lang.Object that) 
int getValue()

Gets the integer representation of this CurrencyCode.

java.lang.String toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail

CHF

public static final CurrencyCode CHF

Represents Swiss franc.

CAD

public static final CurrencyCode CAD

Represents Canadian dollar.

USD

public static final CurrencyCode USD

Represents US dollar.

EUR

public static final CurrencyCode EUR

Represents euro.

GBP

public static final CurrencyCode GBP

Represents British pound.

JPY

public static final CurrencyCode JPY

Represents Japanese yen.

AUD

public static final CurrencyCode AUD

Represents Australian dollar.

INR

public static final CurrencyCode INR

Represents Indian rupee.

RUB

public static final CurrencyCode RUB

Represents Russian ruble.

Constructor Detail

CurrencyCode

public CurrencyCode(int currencyCode)

Initializes this CurrencyCode with the integer representation of a CurrencyCode.

Parameters:
currencyCode - the integer representation of a CurrencyCode
Method Detail

getValue

public int getValue()

Gets the integer representation of this CurrencyCode.

Returns:
the integer representation of this CurrencyCode

equals

public boolean equals(java.lang.Object that)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object