Class TransferTransactionV2
- All Implemented Interfaces:
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.nem.models.Transaction
deadline, entityBodyReserved_1, fee, network, signature, signatureSize, signerPublicKey, signerPublicKeySize, timestamp, type, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransferTransactionV2deserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Gets the amount field.Reads a named field.Gets the message field.longGets the messageEnvelopeSize field.Gets the mosaics field.Gets the recipientAddress field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets the amount field.voidSets a named field.voidsetMessage(Message value) Sets the message field.voidsetMosaics(List<SizePrefixedMosaic> value) Sets the mosaics field.voidsetRecipientAddress(Address value) Sets the recipientAddress field.intsize()Calculates the size of the object.voidsort()Sorts the collections of this object so that it can be serialized canonically.toJson()Converts this object to a JSON-serializable representation.Returns the non-verifiable form of this transaction.toString()Returns a string representation of this object.Returns the type-hint map driving the rule-based descriptor pipeline.Methods inherited from class org.symbol.sdk.nem.models.Transaction
getDeadline, getFee, getNetwork, getSignature, getSignerPublicKey, getTimestamp, getType, getVersion, setDeadline, setFee, setNetwork, setSignature, setSignerPublicKey, setTimestamp, setType, setVersionMethods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, toJsonString
-
Field Details
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
TransferTransactionV2
public TransferTransactionV2()Creates a new TransferTransactionV2.
-
-
Method Details
-
typeHints
- TransferTransactionV2.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classTransaction- Returns:
Field-name → rule-key map.
-
setField
- TransferTransactionV2.setField
Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- TransferTransactionV2.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classTransaction- Parameters:
name- Field name.- Returns:
Field value.
-
toNonVerifiable
- TransferTransactionV2.toNonVerifiable
Returns the non-verifiable form of this transaction.
- Overrides:
toNonVerifiablein classTransaction- Returns:
Non-verifiable transaction.
-
sort
public void sort()- TransferTransactionV2.sort
Sorts the collections of this object so that it can be serialized canonically.
- Overrides:
sortin classCatbufferType
-
getRecipientAddress
- TransferTransactionV2.getRecipientAddress
Gets the recipientAddress field.
- Returns:
The recipientAddress field.
-
setRecipientAddress
- TransferTransactionV2.setRecipientAddress
Sets the recipientAddress field.
- Parameters:
value- New recipientAddress value.
-
getAmount
- TransferTransactionV2.getAmount
Gets the amount field.
- Returns:
The amount field.
-
setAmount
- TransferTransactionV2.setAmount
Sets the amount field.
- Parameters:
value- New amount value.
-
getMessage
- TransferTransactionV2.getMessage
Gets the message field.
- Returns:
The message field.
-
setMessage
- TransferTransactionV2.setMessage
Sets the message field.
- Parameters:
value- New message value.
-
getMosaics
- TransferTransactionV2.getMosaics
Gets the mosaics field.
- Returns:
The mosaics field.
-
setMosaics
- TransferTransactionV2.setMosaics
Sets the mosaics field.
- Parameters:
value- New mosaics value.
-
getMessageEnvelopeSizeComputed
public long getMessageEnvelopeSizeComputed()- TransferTransactionV2.getMessageEnvelopeSizeComputed
Gets the messageEnvelopeSize field.
- Returns:
The messageEnvelopeSize field.
-
size
public int size()- TransferTransactionV2.size
Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classTransaction- Returns:
Size of this object in bytes.
-
deserialize
- TransferTransactionV2.deserialize
Deserializes an instance of this object from a byte payload.
- Parameters:
buffer- Output writer.- Returns:
Deserialized object.
- Throws:
IndexOutOfBoundsException- if the buffer is truncated or a declared length overruns itIllegalArgumentException- if a field carries an invalid value (e.g. a reserved field or unknown discriminator)
-
serializeInto
- TransferTransactionV2.serializeInto
Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classTransaction- Parameters:
buffer- Output writer.
-
toString
- TransferTransactionV2.toString
Returns a string representation of this object.
- Overrides:
toStringin classTransaction- Returns:
String representation of this object.
-
toJson
- TransferTransactionV2.toJson
Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classTransaction- Returns:
JSON-serializable representation of this object.
-