Record Class Conversion

java.lang.Object
java.lang.Record
com.binance4j.convert.dto.Conversion
Record Components:
quoteId - Quote Id.
orderId - Order Id.
orderStatus - Order Status.
fromAsset - From Asset.
fromAmount - From Amount.
toAsset - To Asset.
toAmount - To Amount.
ratio - Ratio.
inverseRatio - Inverse Ratio.
createTime - Create Time in ms.

public record Conversion(String quoteId, long orderId, String orderStatus, String fromAsset, String fromAmount, String toAsset, String toAmount, String ratio, String inverseRatio, long createTime) extends Record
A conversion of an asset into another.
  • Constructor Details

    • Conversion

      public Conversion(String quoteId, long orderId, String orderStatus, String fromAsset, String fromAmount, String toAsset, String toAmount, String ratio, String inverseRatio, long createTime)
      Creates an instance of a Conversion record class.
      Parameters:
      quoteId - the value for the quoteId record component
      orderId - the value for the orderId record component
      orderStatus - the value for the orderStatus record component
      fromAsset - the value for the fromAsset record component
      fromAmount - the value for the fromAmount record component
      toAsset - the value for the toAsset record component
      toAmount - the value for the toAmount record component
      ratio - the value for the ratio record component
      inverseRatio - the value for the inverseRatio record component
      createTime - the value for the createTime record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • quoteId

      public String quoteId()
      Returns the value of the quoteId record component.
      Returns:
      the value of the quoteId record component
    • orderId

      public long orderId()
      Returns the value of the orderId record component.
      Returns:
      the value of the orderId record component
    • orderStatus

      public String orderStatus()
      Returns the value of the orderStatus record component.
      Returns:
      the value of the orderStatus record component
    • fromAsset

      public String fromAsset()
      Returns the value of the fromAsset record component.
      Returns:
      the value of the fromAsset record component
    • fromAmount

      public String fromAmount()
      Returns the value of the fromAmount record component.
      Returns:
      the value of the fromAmount record component
    • toAsset

      public String toAsset()
      Returns the value of the toAsset record component.
      Returns:
      the value of the toAsset record component
    • toAmount

      public String toAmount()
      Returns the value of the toAmount record component.
      Returns:
      the value of the toAmount record component
    • ratio

      public String ratio()
      Returns the value of the ratio record component.
      Returns:
      the value of the ratio record component
    • inverseRatio

      public String inverseRatio()
      Returns the value of the inverseRatio record component.
      Returns:
      the value of the inverseRatio record component
    • createTime

      public long createTime()
      Returns the value of the createTime record component.
      Returns:
      the value of the createTime record component