Class BlockFactory

java.lang.Object
org.symbol.sdk.symbol.models.BlockFactory

public final class BlockFactory extends Object
  • Method Details

    • createByName

      public static Block createByName(String entityName)
      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

      public static Block deserialize(ByteBuffer buffer)
      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 it

      IllegalArgumentException - if a field carries an invalid value (e.g. a reserved field or unknown discriminator)