Package com.binance4j.convert.dto
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreateTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromAmountrecord component.Returns the value of thefromAssetrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinverseRatiorecord component.longorderId()Returns the value of theorderIdrecord component.Returns the value of theorderStatusrecord component.quoteId()Returns the value of thequoteIdrecord component.ratio()Returns the value of theratiorecord component.toAmount()Returns the value of thetoAmountrecord component.toAsset()Returns the value of thetoAssetrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aConversionrecord class.- Parameters:
quoteId- the value for thequoteIdrecord componentorderId- the value for theorderIdrecord componentorderStatus- the value for theorderStatusrecord componentfromAsset- the value for thefromAssetrecord componentfromAmount- the value for thefromAmountrecord componenttoAsset- the value for thetoAssetrecord componenttoAmount- the value for thetoAmountrecord componentratio- the value for theratiorecord componentinverseRatio- the value for theinverseRatiorecord componentcreateTime- the value for thecreateTimerecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
quoteId
Returns the value of thequoteIdrecord component.- Returns:
- the value of the
quoteIdrecord component
-
orderId
public long orderId()Returns the value of theorderIdrecord component.- Returns:
- the value of the
orderIdrecord component
-
orderStatus
Returns the value of theorderStatusrecord component.- Returns:
- the value of the
orderStatusrecord component
-
fromAsset
Returns the value of thefromAssetrecord component.- Returns:
- the value of the
fromAssetrecord component
-
fromAmount
Returns the value of thefromAmountrecord component.- Returns:
- the value of the
fromAmountrecord component
-
toAsset
Returns the value of thetoAssetrecord component.- Returns:
- the value of the
toAssetrecord component
-
toAmount
Returns the value of thetoAmountrecord component.- Returns:
- the value of the
toAmountrecord component
-
ratio
Returns the value of theratiorecord component.- Returns:
- the value of the
ratiorecord component
-
inverseRatio
Returns the value of theinverseRatiorecord component.- Returns:
- the value of the
inverseRatiorecord component
-
createTime
public long createTime()Returns the value of thecreateTimerecord component.- Returns:
- the value of the
createTimerecord component
-