Package org.symbol.sdk.symbol.models
Class TransactionStatement
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.TransactionStatement
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionStatementdeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.longGets the primaryId field.Gets the receipts field.longGets the secondaryId field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetPrimaryId(long value) Sets the primaryId field.voidsetReceipts(List<Receipt> value) Sets the receipts field.voidsetSecondaryId(long value) Sets the secondaryId field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.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.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonString
-
Field Details
-
TYPE_HINTS
-
-
Constructor Details
-
TransactionStatement
public TransactionStatement()Creates a new TransactionStatement.
-
-
Method Details
-
typeHints
- TransactionStatement.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- TransactionStatement.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classCatbufferType- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- TransactionStatement.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
- Field value.
-
getPrimaryId
public long getPrimaryId()- TransactionStatement.getPrimaryId
- Gets the primaryId field.
- Returns:
- The primaryId field.
-
setPrimaryId
public void setPrimaryId(long value) - TransactionStatement.setPrimaryId
- Sets the primaryId field.
- Parameters:
value- New primaryId value.
-
getSecondaryId
public long getSecondaryId()- TransactionStatement.getSecondaryId
- Gets the secondaryId field.
- Returns:
- The secondaryId field.
-
setSecondaryId
public void setSecondaryId(long value) - TransactionStatement.setSecondaryId
- Sets the secondaryId field.
- Parameters:
value- New secondaryId value.
-
getReceipts
- TransactionStatement.getReceipts
- Gets the receipts field.
- Returns:
- The receipts field.
-
setReceipts
- TransactionStatement.setReceipts
- Sets the receipts field.
- Parameters:
value- New receipts value.
-
size
public int size()- TransactionStatement.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
deserialize
- TransactionStatement.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
- TransactionStatement.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- TransactionStatement.toString
- Returns a string representation of this object.
-
toJson
- TransactionStatement.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-