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