Class 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()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExchangeRate

        public ExchangeRate​(java.lang.String id,
                            java.lang.String fromCurrency,
                            java.lang.String toCurrency,
                            java.math.BigDecimal value,
                            int timestamp)
    • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object