Class ReceiptFactory

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

public final class ReceiptFactory extends Object
  • Method Details

    • createByName

      public static Receipt createByName(String entityName)
      ReceiptFactory.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 Receipt deserialize(ByteBuffer buffer)
      ReceiptFactory.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)