Package org.symbol.sdk.symbol.models
Class HashLockTransactionV1
java.lang.Object
org.symbol.sdk.CatbufferType
org.symbol.sdk.symbol.models.Transaction
org.symbol.sdk.symbol.models.HashLockTransactionV1
- All Implemented Interfaces:
Serializer,BaseTransaction
-
Field Summary
FieldsFields inherited from class org.symbol.sdk.symbol.models.Transaction
deadline, entityBodyReserved_1, fee, network, signature, signerPublicKey, type, verifiableEntityHeaderReserved_1, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HashLockTransactionV1deserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.Gets the duration field.Reads a named field.getHash()Gets the hash field.Gets the mosaic field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidsetDuration(BlockDuration value) Sets the duration field.voidSets a named field.voidSets the hash field.voidsetMosaic(UnresolvedMosaic value) Sets the mosaic 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.symbol.models.Transaction
getDeadline, getFee, getNetwork, getSignature, getSignerPublicKey, getType, getVersion, setDeadline, setFee, setNetwork, setSignature, setSignerPublicKey, setType, setVersionMethods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, toJsonStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.symbol.sdk.Serializer
serialize
-
Field Details
-
TRANSACTION_VERSION
public static final int TRANSACTION_VERSION- See Also:
-
TRANSACTION_TYPE
-
TYPE_HINTS
-
-
Constructor Details
-
HashLockTransactionV1
public HashLockTransactionV1()Creates a new HashLockTransactionV1.
-
-
Method Details
-
typeHints
- HashLockTransactionV1.typeHints
- Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classTransaction- Returns:
- Field-name → rule-key map.
-
setField
- HashLockTransactionV1.setField
- Sets a named field. Used by the rule-based descriptor pipeline.
- Specified by:
setFieldin interfaceBaseTransaction- Overrides:
setFieldin classTransaction- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- HashLockTransactionV1.getField
- Reads a named field. Used by the facade-level entity inspection helpers.
- Specified by:
getFieldin interfaceBaseTransaction- Overrides:
getFieldin classTransaction- Parameters:
name- Field name.- Returns:
- Field value.
-
sort
public void sort()- HashLockTransactionV1.sort
- Sorts the collections of this object so that it can be serialized canonically.
- Specified by:
sortin interfaceBaseTransaction- Overrides:
sortin classCatbufferType
-
getMosaic
- HashLockTransactionV1.getMosaic
- Gets the mosaic field.
- Returns:
- The mosaic field.
-
setMosaic
- HashLockTransactionV1.setMosaic
- Sets the mosaic field.
- Parameters:
value- New mosaic value.
-
getDuration
- HashLockTransactionV1.getDuration
- Gets the duration field.
- Returns:
- The duration field.
-
setDuration
- HashLockTransactionV1.setDuration
- Sets the duration field.
- Parameters:
value- New duration value.
-
getHash
- HashLockTransactionV1.getHash
- Gets the hash field.
- Returns:
- The hash field.
-
setHash
- HashLockTransactionV1.setHash
- Sets the hash field.
- Parameters:
value- New hash value.
-
size
public int size()- HashLockTransactionV1.size
- Calculates the size of the object.
- Specified by:
sizein interfaceSerializer- Overrides:
sizein classTransaction- Returns:
- Size of this object in bytes.
-
deserialize
- HashLockTransactionV1.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
- HashLockTransactionV1.serializeInto
- Writes this object's fields into the supplied buffer.
- Overrides:
serializeIntoin classTransaction- Parameters:
buffer- Output writer.
-
toString
- HashLockTransactionV1.toString
- Returns a string representation of this object.
- Overrides:
toStringin classTransaction- Returns:
- String representation of this object.
-
toJson
- HashLockTransactionV1.toJson
- Converts this object to a JSON-serializable representation.
- Overrides:
toJsonin classTransaction- Returns:
- JSON-serializable representation of this object.
-