Package org.symbol.sdk.symbol.models
Class TransactionFactory
java.lang.Object
org.symbol.sdk.symbol.models.TransactionFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransactioncreateByName(String entityName) Creates an instance of the concrete type by its name.static Transactiondeserialize(ByteBuffer buffer) Deserializes an instance of this object from a byte payload.
-
Method Details
-
createByName
- TransactionFactory.createByName
- Creates an instance of the concrete type by its name.
- Parameters:
entityName- Entity (transaction) name.- Returns:
- New instance of the named type.
-
deserialize
- TransactionFactory.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)
-