Enum Class ReceiptType

java.lang.Object
java.lang.Enum<ReceiptType>
org.symbol.sdk.symbol.models.ReceiptType
All Implemented Interfaces:
Serializable, Comparable<ReceiptType>, Constable, Serializer

public enum ReceiptType extends Enum<ReceiptType> implements Serializer
  • Enum Constant Details

    • MOSAIC_RENTAL_FEE

      public static final ReceiptType MOSAIC_RENTAL_FEE
    • NAMESPACE_RENTAL_FEE

      public static final ReceiptType NAMESPACE_RENTAL_FEE
    • HARVEST_FEE

      public static final ReceiptType HARVEST_FEE
    • LOCK_HASH_COMPLETED

      public static final ReceiptType LOCK_HASH_COMPLETED
    • LOCK_HASH_EXPIRED

      public static final ReceiptType LOCK_HASH_EXPIRED
    • LOCK_SECRET_COMPLETED

      public static final ReceiptType LOCK_SECRET_COMPLETED
    • LOCK_SECRET_EXPIRED

      public static final ReceiptType LOCK_SECRET_EXPIRED
    • LOCK_HASH_CREATED

      public static final ReceiptType LOCK_HASH_CREATED
    • LOCK_SECRET_CREATED

      public static final ReceiptType LOCK_SECRET_CREATED
    • MOSAIC_EXPIRED

      public static final ReceiptType MOSAIC_EXPIRED
    • NAMESPACE_EXPIRED

      public static final ReceiptType NAMESPACE_EXPIRED
    • NAMESPACE_DELETED

      public static final ReceiptType NAMESPACE_DELETED
    • INFLATION

      public static final ReceiptType INFLATION
    • TRANSACTION_GROUP

      public static final ReceiptType TRANSACTION_GROUP
    • ADDRESS_ALIAS_RESOLUTION

      public static final ReceiptType ADDRESS_ALIAS_RESOLUTION
    • MOSAIC_ALIAS_RESOLUTION

      public static final ReceiptType MOSAIC_ALIAS_RESOLUTION
  • Method Details

    • values

      public static ReceiptType[] values()
      ReceiptType.values
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ReceiptType valueOf(String name)
      ReceiptType.valueOf
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      ReceiptType.getValue
      Gets the value field.
      Returns:
      The value field.
    • fromValue

      public static ReceiptType fromValue(int value)
      ReceiptType.fromValue
      Creates an instance from its underlying numeric value.
      Parameters:
      value - Value.
      Returns:
      Instance corresponding to the numeric value.
    • parse

      public static ReceiptType parse(Object rawValue)
      ReceiptType.parse
      Parses a raw value into an instance.
      Parameters:
      rawValue - Raw value to parse.
      Returns:
      Parsed instance.
    • size

      public int size()
      ReceiptType.size
      Calculates the size of the object.
      Specified by:
      size in interface Serializer
      Returns:
      Size of this object in bytes.
    • deserialize

      public static ReceiptType deserialize(ByteBuffer buffer)
      ReceiptType.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)
    • serialize

      public byte[] serialize()
      ReceiptType.serialize
      Serializes this object to bytes.
      Specified by:
      serialize in interface Serializer
      Returns:
      Serialized bytes.
    • toString

      public String toString()
      ReceiptType.toString
      Returns a string representation of this object.
      Overrides:
      toString in class Enum<ReceiptType>
      Returns:
      String representation of this object.
    • toJson

      public int toJson()
      ReceiptType.toJson
      Converts this object to a JSON-serializable representation.
      Returns:
      JSON-serializable representation of this object.