Package io.nem.catapult.builders
Enum EntityTypeDto
- java.lang.Object
-
- java.lang.Enum<EntityTypeDto>
-
- io.nem.catapult.builders.EntityTypeDto
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EntityTypeDto>
public enum EntityTypeDto extends java.lang.Enum<EntityTypeDto>
enumeration of entity types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_ADDRESS_RESTRICTION_TRANSACTIONAccount address restriction transaction.ACCOUNT_LINK_TRANSACTIONAccount link transaction.ACCOUNT_METADATA_TRANSACTIONAccount metadata transaction versionACCOUNT_MOSAIC_RESTRICTION_TRANSACTIONAccount mosaic restriction transaction.ACCOUNT_OPERATION_RESTRICTION_TRANSACTIONAccount operation restriction transaction.ADDRESS_ALIAS_TRANSACTIONAddress alias transaction.AGGREGATE_BONDED_TRANSACTIONAggregate bonded transaction.AGGREGATE_COMPLETE_TRANSACTIONAggregate complete transaction.HASH_LOCK_TRANSACTIONHash lock transaction.MODIFY_MULTISIG_ACCOUNT_TRANSACTIONModify multisig account transaction.MOSAIC_ADDRESS_RESTRICTIONMosaic address restriction transactionMOSAIC_ALIAS_TRANSACTIONMosaic alias transaction.MOSAIC_DEFINITION_TRANSACTIONMosaic definition transaction.MOSAIC_GLOBAL_RESTRICTIONMosaic global restriction transactionMOSAIC_METADATA_TRANSACTIONMosaic metadata transaction versionMOSAIC_SUPPLY_CHANGE_TRANSACTIONMosaic supply change transaction.NAMESPACE_METADATA_TRANSACTIONNamespace metadata transaction versionREGISTER_NAMESPACE_TRANSACTIONRegister namespace transaction.RESERVEDreserved entity type.SECRET_LOCK_TRANSACTIONSecret lock transaction.SECRET_PROOF_TRANSACTIONSecret Proof transaction.TRANSFER_TRANSACTIONTransfer transaction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()Get the size of the object.shortgetValue()static EntityTypeDtoloadFromBinary(java.io.DataInput stream)Create an instance of EntityTypeDto from a stream.static EntityTypeDtorawValueOf(short value)Get enum value.byte[]serialize()Serialize the object to bytes.static EntityTypeDtovalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EntityTypeDto[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESERVED
public static final EntityTypeDto RESERVED
reserved entity type.
-
ACCOUNT_ADDRESS_RESTRICTION_TRANSACTION
public static final EntityTypeDto ACCOUNT_ADDRESS_RESTRICTION_TRANSACTION
Account address restriction transaction.
-
ACCOUNT_MOSAIC_RESTRICTION_TRANSACTION
public static final EntityTypeDto ACCOUNT_MOSAIC_RESTRICTION_TRANSACTION
Account mosaic restriction transaction.
-
ACCOUNT_OPERATION_RESTRICTION_TRANSACTION
public static final EntityTypeDto ACCOUNT_OPERATION_RESTRICTION_TRANSACTION
Account operation restriction transaction.
-
ACCOUNT_LINK_TRANSACTION
public static final EntityTypeDto ACCOUNT_LINK_TRANSACTION
Account link transaction.
-
ACCOUNT_METADATA_TRANSACTION
public static final EntityTypeDto ACCOUNT_METADATA_TRANSACTION
Account metadata transaction version
-
MOSAIC_METADATA_TRANSACTION
public static final EntityTypeDto MOSAIC_METADATA_TRANSACTION
Mosaic metadata transaction version
-
NAMESPACE_METADATA_TRANSACTION
public static final EntityTypeDto NAMESPACE_METADATA_TRANSACTION
Namespace metadata transaction version
-
ADDRESS_ALIAS_TRANSACTION
public static final EntityTypeDto ADDRESS_ALIAS_TRANSACTION
Address alias transaction.
-
AGGREGATE_BONDED_TRANSACTION
public static final EntityTypeDto AGGREGATE_BONDED_TRANSACTION
Aggregate bonded transaction.
-
AGGREGATE_COMPLETE_TRANSACTION
public static final EntityTypeDto AGGREGATE_COMPLETE_TRANSACTION
Aggregate complete transaction.
-
HASH_LOCK_TRANSACTION
public static final EntityTypeDto HASH_LOCK_TRANSACTION
Hash lock transaction.
-
MODIFY_MULTISIG_ACCOUNT_TRANSACTION
public static final EntityTypeDto MODIFY_MULTISIG_ACCOUNT_TRANSACTION
Modify multisig account transaction.
-
MOSAIC_DEFINITION_TRANSACTION
public static final EntityTypeDto MOSAIC_DEFINITION_TRANSACTION
Mosaic definition transaction.
-
MOSAIC_SUPPLY_CHANGE_TRANSACTION
public static final EntityTypeDto MOSAIC_SUPPLY_CHANGE_TRANSACTION
Mosaic supply change transaction.
-
MOSAIC_ALIAS_TRANSACTION
public static final EntityTypeDto MOSAIC_ALIAS_TRANSACTION
Mosaic alias transaction.
-
REGISTER_NAMESPACE_TRANSACTION
public static final EntityTypeDto REGISTER_NAMESPACE_TRANSACTION
Register namespace transaction.
-
SECRET_LOCK_TRANSACTION
public static final EntityTypeDto SECRET_LOCK_TRANSACTION
Secret lock transaction.
-
SECRET_PROOF_TRANSACTION
public static final EntityTypeDto SECRET_PROOF_TRANSACTION
Secret Proof transaction.
-
TRANSFER_TRANSACTION
public static final EntityTypeDto TRANSFER_TRANSACTION
Transfer transaction.
-
MOSAIC_ADDRESS_RESTRICTION
public static final EntityTypeDto MOSAIC_ADDRESS_RESTRICTION
Mosaic address restriction transaction
-
MOSAIC_GLOBAL_RESTRICTION
public static final EntityTypeDto MOSAIC_GLOBAL_RESTRICTION
Mosaic global restriction transaction
-
-
Method Detail
-
values
public static EntityTypeDto[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EntityTypeDto c : EntityTypeDto.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityTypeDto valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
rawValueOf
public static EntityTypeDto rawValueOf(short value)
Get enum value.- Parameters:
value- Raw value of the enum.- Returns:
- Enum value.
-
loadFromBinary
public static EntityTypeDto loadFromBinary(java.io.DataInput stream)
Create an instance of EntityTypeDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of EntityTypeDto.
-
getSize
public int getSize()
Get the size of the object.- Returns:
- Size in bytes.
-
serialize
public byte[] serialize()
Serialize the object to bytes.- Returns:
- Serialized bytes.
-
getValue
public short getValue()
-
-