Package org.symbol.sdk.symbol.models
Class DetachedCosignature
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.DetachedCosignature
- All Implemented Interfaces:
Serializer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DetachedCosignaturedeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Reads a named field.Gets the parentHash field.Gets the signature field.Gets the signerPublicKey field.longGets the version field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidSets a named field.voidsetParentHash(Hash256 value) Sets the parentHash field.voidsetSignature(Signature value) Sets the signature field.voidsetSignerPublicKey(PublicKey value) Sets the signerPublicKey field.voidsetVersion(long value) Sets the version 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
-
DetachedCosignature
public DetachedCosignature()Creates a new DetachedCosignature.
-
-
Method Details
-
typeHints
- DetachedCosignature.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
- Field-name → rule-key map.
-
setField
- DetachedCosignature.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
- DetachedCosignature.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
- Field value.
-
getVersion
public long getVersion()- DetachedCosignature.getVersion
- Gets the version field.
- Returns:
- The version field.
-
setVersion
public void setVersion(long value) - DetachedCosignature.setVersion
- Sets the version field.
- Parameters:
value- New version value.
-
getSignerPublicKey
- DetachedCosignature.getSignerPublicKey
- Gets the signerPublicKey field.
- Returns:
- The signerPublicKey field.
-
setSignerPublicKey
- DetachedCosignature.setSignerPublicKey
- Sets the signerPublicKey field.
- Parameters:
value- New signerPublicKey value.
-
getSignature
- DetachedCosignature.getSignature
- Gets the signature field.
- Returns:
- The signature field.
-
setSignature
- DetachedCosignature.setSignature
- Sets the signature field.
- Parameters:
value- New signature value.
-
getParentHash
- DetachedCosignature.getParentHash
- Gets the parentHash field.
- Returns:
- The parentHash field.
-
setParentHash
- DetachedCosignature.setParentHash
- Sets the parentHash field.
- Parameters:
value- New parentHash value.
-
size
public int size()- DetachedCosignature.size
- Calculates the size of the object.
- Returns:
- Size of this object in bytes.
-
deserialize
- DetachedCosignature.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
- DetachedCosignature.serializeInto
- Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- DetachedCosignature.toString
- Returns a string representation of this object.
-
toJson
- DetachedCosignature.toJson
- Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
- JSON-serializable representation of this object.
-