Class TradePrice

java.lang.Object
org.stellar.sdk.responses.TradePrice

public class TradePrice extends Object
Represents Price. Price in Stellar is represented as a fraction.
  • Constructor Details

    • TradePrice

      public TradePrice(Long n, Long d)
  • Method Details

    • getNumerator

      public Long getNumerator()
      Returns numerator.
    • getDenominator

      public Long getDenominator()
      Returns denominator
    • toString

      public String toString()
      Returns price as a string.
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object