Class ExchangeRates

java.lang.Object
com.hedera.hashgraph.sdk.ExchangeRates

public final class ExchangeRates extends Object
Contains a set of Exchange Rates (current and next).
  • Field Details

    • currentRate

      public final ExchangeRate currentRate
      Current Exchange Rate
    • nextRate

      public final ExchangeRate nextRate
      Next Exchange Rate
  • Method Details

    • fromProtobuf

      static ExchangeRates fromProtobuf(ExchangeRateSet pb)
      Create an Exchange Rates from a protobuf.
      Parameters:
      pb - the protobuf
      Returns:
      the new exchange rates
    • fromBytes

      public static ExchangeRates fromBytes(byte[] bytes) throws com.google.protobuf.InvalidProtocolBufferException
      Create an Exchange Rates from a byte array.
      Parameters:
      bytes - the byte array
      Returns:
      the new exchange rates
      Throws:
      com.google.protobuf.InvalidProtocolBufferException - when there is an issue with the protobuf
    • toString

      public String toString()
      Overrides:
      toString in class Object