Package foundation.omni.txrecords
Record Class TransactionRecords.MetaDexSellOffer
java.lang.Object
java.lang.Record
foundation.omni.txrecords.TransactionRecords.MetaDexSellOffer
- All Implemented Interfaces:
Transactions.OmniTx
- Enclosing interface:
TransactionRecords
public static record TransactionRecords.MetaDexSellOffer(short version, CurrencyID currencyForSale, OmniValue amountForSale, CurrencyID currencyDesired, OmniValue amountDesired, Byte action)
extends Record
implements Transactions.OmniTx
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDexSellOffer(short version, CurrencyID currencyForSale, OmniValue amountForSale, CurrencyID currencyDesired, OmniValue amountDesired, Byte action) Creates an instance of aMetaDexSellOfferrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.Returns the value of theamountDesiredrecord component.Returns the value of theamountForSalerecord component.Returns the value of thecurrencyDesiredrecord component.Returns the value of thecurrencyForSalerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]payload()final StringtoString()Returns a string representation of this record class.type()shortversion()Returns the value of theversionrecord component.
-
Constructor Details
-
MetaDexSellOffer
public MetaDexSellOffer(short version, CurrencyID currencyForSale, OmniValue amountForSale, CurrencyID currencyDesired, OmniValue amountDesired, Byte action) Creates an instance of aMetaDexSellOfferrecord class.- Parameters:
version- the value for theversionrecord componentcurrencyForSale- the value for thecurrencyForSalerecord componentamountForSale- the value for theamountForSalerecord componentcurrencyDesired- the value for thecurrencyDesiredrecord componentamountDesired- the value for theamountDesiredrecord componentaction- the value for theactionrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceTransactions.OmniTx
-
payload
public byte[] payload()- Specified by:
payloadin interfaceTransactions.OmniTx
-
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 '=='. -
version
public short version()Returns the value of theversionrecord component.- Specified by:
versionin interfaceTransactions.OmniTx- Returns:
- the value of the
versionrecord component
-
currencyForSale
Returns the value of thecurrencyForSalerecord component.- Returns:
- the value of the
currencyForSalerecord component
-
amountForSale
Returns the value of theamountForSalerecord component.- Returns:
- the value of the
amountForSalerecord component
-
currencyDesired
Returns the value of thecurrencyDesiredrecord component.- Returns:
- the value of the
currencyDesiredrecord component
-
amountDesired
Returns the value of theamountDesiredrecord component.- Returns:
- the value of the
amountDesiredrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-