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