Package money.zumo.zumokit
Class ExchangeRate
- java.lang.Object
-
- money.zumo.zumokit.ExchangeRate
-
public final class ExchangeRate extends java.lang.Object
Record containing Zumo exchange rates for information purposes only. Can be used to display amounts in local currency to the user.
-
-
Constructor Summary
Constructors Constructor Description ExchangeRate(java.lang.String id, java.lang.String fromCurrency, java.lang.String toCurrency, java.math.BigDecimal value, int timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getFromCurrency()
Deposit currency.java.lang.String
getId()
Identifier.int
getTimestamp()
Epoch timestamp when the exchange rate was issued.java.lang.String
getToCurrency()
Target currency.java.math.BigDecimal
getValue()
Value of 1 unit of deposit currency in target currency.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Identifier.
-
getFromCurrency
public java.lang.String getFromCurrency()
Deposit currency.- See Also:
CurrencyCode
-
getToCurrency
public java.lang.String getToCurrency()
Target currency.- See Also:
CurrencyCode
-
getValue
public java.math.BigDecimal getValue()
Value of 1 unit of deposit currency in target currency.
-
getTimestamp
public int getTimestamp()
Epoch timestamp when the exchange rate was issued.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-