Enum Class TransactionType

java.lang.Object
java.lang.Enum<TransactionType>
org.symbol.sdk.symbol.models.TransactionType
All Implemented Interfaces:

Serializable, Comparable<TransactionType>, Constable, Serializer


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

    • AGGREGATE_COMPLETE

      public static final TransactionType AGGREGATE_COMPLETE
    • AGGREGATE_BONDED

      public static final TransactionType AGGREGATE_BONDED
    • HASH_LOCK

      public static final TransactionType HASH_LOCK
    • SECRET_LOCK

      public static final TransactionType SECRET_LOCK
    • SECRET_PROOF

      public static final TransactionType SECRET_PROOF
    • ACCOUNT_METADATA

      public static final TransactionType ACCOUNT_METADATA
    • MOSAIC_METADATA

      public static final TransactionType MOSAIC_METADATA
    • NAMESPACE_METADATA

      public static final TransactionType NAMESPACE_METADATA
    • MOSAIC_DEFINITION

      public static final TransactionType MOSAIC_DEFINITION
    • MOSAIC_SUPPLY_CHANGE

      public static final TransactionType MOSAIC_SUPPLY_CHANGE
    • MOSAIC_SUPPLY_REVOCATION

      public static final TransactionType MOSAIC_SUPPLY_REVOCATION
    • MULTISIG_ACCOUNT_MODIFICATION

      public static final TransactionType MULTISIG_ACCOUNT_MODIFICATION
    • ADDRESS_ALIAS

      public static final TransactionType ADDRESS_ALIAS
    • MOSAIC_ALIAS

      public static final TransactionType MOSAIC_ALIAS
    • NAMESPACE_REGISTRATION

      public static final TransactionType NAMESPACE_REGISTRATION
    • ACCOUNT_ADDRESS_RESTRICTION

      public static final TransactionType ACCOUNT_ADDRESS_RESTRICTION
    • ACCOUNT_MOSAIC_RESTRICTION

      public static final TransactionType ACCOUNT_MOSAIC_RESTRICTION
    • ACCOUNT_OPERATION_RESTRICTION

      public static final TransactionType ACCOUNT_OPERATION_RESTRICTION
    • MOSAIC_ADDRESS_RESTRICTION

      public static final TransactionType MOSAIC_ADDRESS_RESTRICTION
    • MOSAIC_GLOBAL_RESTRICTION

      public static final TransactionType MOSAIC_GLOBAL_RESTRICTION
    • TRANSFER

      public static final TransactionType TRANSFER
  • Method Details

    • values

      public static TransactionType[] values()
      TransactionType.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 TransactionType valueOf(String name)
      TransactionType.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()
      TransactionType.getValue

      Gets the value field.

      Returns:

      The value field.

    • fromValue

      public static TransactionType fromValue(int value)
      TransactionType.fromValue

      Creates an instance from its underlying numeric value.

      Parameters:

      value - Value.

      Returns:

      Instance corresponding to the numeric value.

    • parse

      public static TransactionType parse(Object rawValue)
      TransactionType.parse

      Parses a raw value into an instance.

      Parameters:

      rawValue - Raw value to parse.

      Returns:

      Parsed instance.

    • size

      public int size()
      TransactionType.size

      Calculates the size of the object.

      Specified by:

      size in interface Serializer

      Returns:

      Size of this object in bytes.

    • deserialize

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

      Serializes this object to bytes.

      Specified by:

      serialize in interface Serializer

      Returns:

      Serialized bytes.

    • toString

      public String toString()
      TransactionType.toString

      Returns a string representation of this object.

      Overrides:

      toString in class Enum<TransactionType>

      Returns:

      String representation of this object.

    • toJson

      public int toJson()
      TransactionType.toJson

      Converts this object to a JSON-serializable representation.

      Returns:

      JSON-serializable representation of this object.