Class MosaicLevy
- All Implemented Interfaces:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MosaicLevydeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.getFee()Gets the fee field.Reads a named field.Gets the mosaicId field.Gets the recipientAddress field.Gets the transferFeeType field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets the fee field.voidSets a named field.voidsetMosaicId(MosaicId value) Sets the mosaicId field.voidsetRecipientAddress(Address value) Sets the recipientAddress field.voidSets the transferFeeType 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.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, toJsonString
-
Field Details
-
TYPE_HINTS
-
-
Constructor Details
-
MosaicLevy
public MosaicLevy()Creates a new MosaicLevy.
-
-
Method Details
-
typeHints
- MosaicLevy.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
Field-name → rule-key map.
-
setField
- MosaicLevy.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
- MosaicLevy.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
Field value.
-
sort
public void sort()- MosaicLevy.sort
Sorts the collections of this object so that it can be serialized canonically.
- Overrides:
sortin classCatbufferType
-
getTransferFeeType
- MosaicLevy.getTransferFeeType
Gets the transferFeeType field.
- Returns:
The transferFeeType field.
-
setTransferFeeType
- MosaicLevy.setTransferFeeType
Sets the transferFeeType field.
- Parameters:
value- New transferFeeType value.
-
getRecipientAddress
- MosaicLevy.getRecipientAddress
Gets the recipientAddress field.
- Returns:
The recipientAddress field.
-
setRecipientAddress
- MosaicLevy.setRecipientAddress
Sets the recipientAddress field.
- Parameters:
value- New recipientAddress value.
-
getMosaicId
- MosaicLevy.getMosaicId
Gets the mosaicId field.
- Returns:
The mosaicId field.
-
setMosaicId
- MosaicLevy.setMosaicId
Sets the mosaicId field.
- Parameters:
value- New mosaicId value.
-
getFee
- MosaicLevy.getFee
Gets the fee field.
- Returns:
The fee field.
-
setFee
- MosaicLevy.setFee
Sets the fee field.
- Parameters:
value- New fee value.
-
size
public int size()- MosaicLevy.size
Calculates the size of the object.
- Returns:
Size of this object in bytes.
-
deserialize
- MosaicLevy.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
- MosaicLevy.serializeInto
Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- MosaicLevy.toString
Returns a string representation of this object.
-
toJson
- MosaicLevy.toJson
Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
JSON-serializable representation of this object.
-