Package org.symbol.sdk.symbol.models
Class ReceiptSource
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.ReceiptSource
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReceiptSourcedeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.longGets the primaryId 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.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
-
ReceiptSource
public ReceiptSource()Creates a new ReceiptSource.
-
-
Method Details
-
typeHints
- ReceiptSource.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- ReceiptSource.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
- ReceiptSource.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()- ReceiptSource.getPrimaryId
- Gets the primaryId field.
- Returns:
- The primaryId field.
-
setPrimaryId
public void setPrimaryId(long value) - ReceiptSource.setPrimaryId
- Sets the primaryId field.
- Parameters:
value- New primaryId value.
-
getSecondaryId
public long getSecondaryId()- ReceiptSource.getSecondaryId
- Gets the secondaryId field.
- Returns:
- The secondaryId field.
-
setSecondaryId
public void setSecondaryId(long value) - ReceiptSource.setSecondaryId
- Sets the secondaryId field.
- Parameters:
value- New secondaryId value.
-
size
public int size()- ReceiptSource.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
deserialize
- ReceiptSource.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
- ReceiptSource.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- ReceiptSource.toString
- Returns a string representation of this object.
-
toJson
- ReceiptSource.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-