Package org.symbol.sdk.symbol.models
Class UnresolvedMosaic
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.UnresolvedMosaic
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UnresolvedMosaicdeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Gets the amount field.Reads a named field.Gets the mosaicId field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets the amount field.voidSets a named field.voidsetMosaicId(UnresolvedMosaicId value) Sets the mosaicId 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
-
UnresolvedMosaic
public UnresolvedMosaic()Creates a new UnresolvedMosaic.
-
-
Method Details
-
typeHints
- UnresolvedMosaic.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- UnresolvedMosaic.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
- UnresolvedMosaic.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
- Field value.
-
getMosaicId
- UnresolvedMosaic.getMosaicId
- Gets the mosaicId field.
- Returns:
- The mosaicId field.
-
setMosaicId
- UnresolvedMosaic.setMosaicId
- Sets the mosaicId field.
- Parameters:
value- New mosaicId value.
-
getAmount
- UnresolvedMosaic.getAmount
- Gets the amount field.
- Returns:
- The amount field.
-
setAmount
- UnresolvedMosaic.setAmount
- Sets the amount field.
- Parameters:
value- New amount value.
-
size
public int size()- UnresolvedMosaic.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
deserialize
- UnresolvedMosaic.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
- UnresolvedMosaic.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- UnresolvedMosaic.toString
- Returns a string representation of this object.
-
toJson
- UnresolvedMosaic.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-