Package money.zumo.zumokit
Class ExchangeRate
- java.lang.Object
-
- money.zumo.zumokit.ExchangeRate
-
public final class ExchangeRate extends java.lang.ObjectRecord 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 booleanequals(java.lang.Object obj)java.lang.StringgetFromCurrency()Deposit currency.java.lang.StringgetId()Identifier.intgetTimestamp()Epoch timestamp when the exchange rate was issued.java.lang.StringgetToCurrency()Target currency.java.math.BigDecimalgetValue()Value of 1 unit of deposit currency in target currency.inthashCode()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-