Package org.symbol.sdk.symbol.models
Class FinalizedBlockHeader
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.FinalizedBlockHeader
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FinalizedBlockHeaderdeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.getHash()Gets the hash field.Gets the height field.getRound()Gets the round field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidSets the hash field.voidSets the height field.voidsetRound(FinalizationRound value) Sets the round 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
-
FinalizedBlockHeader
public FinalizedBlockHeader()Creates a new FinalizedBlockHeader.
-
-
Method Details
-
typeHints
- FinalizedBlockHeader.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- FinalizedBlockHeader.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
- FinalizedBlockHeader.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()- FinalizedBlockHeader.sort
- Sorts the collections of this object so that it can be serialized canonically.
- Overrides:
sortin classCatbufferType
-
getRound
- FinalizedBlockHeader.getRound
- Gets the round field.
- Returns:
- The round field.
-
setRound
- FinalizedBlockHeader.setRound
- Sets the round field.
- Parameters:
value- New round value.
-
getHeight
- FinalizedBlockHeader.getHeight
- Gets the height field.
- Returns:
- The height field.
-
setHeight
- FinalizedBlockHeader.setHeight
- Sets the height field.
- Parameters:
value- New height value.
-
getHash
- FinalizedBlockHeader.getHash
- Gets the hash field.
- Returns:
- The hash field.
-
setHash
- FinalizedBlockHeader.setHash
- Sets the hash field.
- Parameters:
value- New hash value.
-
size
public int size()- FinalizedBlockHeader.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
deserialize
- FinalizedBlockHeader.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
- FinalizedBlockHeader.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- FinalizedBlockHeader.toString
- Returns a string representation of this object.
-
toJson
- FinalizedBlockHeader.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-