Package io.nem.symbol.catapult.builders
Enum EntityTypeDto
- java.lang.Object
-
- java.lang.Enum<EntityTypeDto>
-
- io.nem.symbol.catapult.builders.EntityTypeDto
-
- All Implemented Interfaces:
Serializer,java.io.Serializable,java.lang.Comparable<EntityTypeDto>
public enum EntityTypeDto extends java.lang.Enum<EntityTypeDto> implements Serializer
Enumeration of entity types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_ADDRESS_RESTRICTION_TRANSACTIONAccount address restriction transaction.ACCOUNT_KEY_LINK_TRANSACTIONAccount key link transaction.ACCOUNT_METADATA_TRANSACTIONAccount metadata transaction.ACCOUNT_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.IMPORTANCE_BLOCK_HEADERImportance block header.MOSAIC_ADDRESS_RESTRICTION_TRANSACTIONMosaic address restriction transaction.MOSAIC_ALIAS_TRANSACTIONMosaic alias transaction.MOSAIC_DEFINITION_TRANSACTIONMosaic definition transaction.MOSAIC_GLOBAL_RESTRICTION_TRANSACTIONMosaic global restriction transaction.MOSAIC_METADATA_TRANSACTIONMosaic metadata transaction.MOSAIC_SUPPLY_CHANGE_TRANSACTIONMosaic supply change transaction.MULTISIG_ACCOUNT_MODIFICATION_TRANSACTIONMultisig account modification transaction.NAMESPACE_METADATA_TRANSACTIONNamespace metadata transaction.NAMESPACE_REGISTRATION_TRANSACTIONNamespace registration transaction.NEMESIS_BLOCK_HEADERNemesis block header.NODE_KEY_LINK_TRANSACTIONNode key link transaction.NORMAL_BLOCK_HEADERNormal block header.RESERVEDreserved entity type.SECRET_LOCK_TRANSACTIONSecret lock transaction.SECRET_PROOF_TRANSACTIONSecret proof transaction.TRANSFER_TRANSACTIONTransfer transaction.VOTING_KEY_LINK_TRANSACTIONVoting key link transaction.VRF_KEY_LINK_TRANSACTIONVrf key link transaction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetSize()Gets the size of the object.shortgetValue()Gets the value of the enum.static EntityTypeDtoloadFromBinary(java.io.DataInputStream stream)Creates an instance of EntityTypeDto from a stream.static EntityTypeDtorawValueOf(short value)Gets enum value.byte[]serialize()Serializes an 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.
-
NEMESIS_BLOCK_HEADER
public static final EntityTypeDto NEMESIS_BLOCK_HEADER
Nemesis block header.
-
NORMAL_BLOCK_HEADER
public static final EntityTypeDto NORMAL_BLOCK_HEADER
Normal block header.
-
IMPORTANCE_BLOCK_HEADER
public static final EntityTypeDto IMPORTANCE_BLOCK_HEADER
Importance block header.
-
ACCOUNT_KEY_LINK_TRANSACTION
public static final EntityTypeDto ACCOUNT_KEY_LINK_TRANSACTION
Account key link transaction.
-
NODE_KEY_LINK_TRANSACTION
public static final EntityTypeDto NODE_KEY_LINK_TRANSACTION
Node key link transaction.
-
AGGREGATE_COMPLETE_TRANSACTION
public static final EntityTypeDto AGGREGATE_COMPLETE_TRANSACTION
Aggregate complete transaction.
-
AGGREGATE_BONDED_TRANSACTION
public static final EntityTypeDto AGGREGATE_BONDED_TRANSACTION
Aggregate bonded transaction.
-
VOTING_KEY_LINK_TRANSACTION
public static final EntityTypeDto VOTING_KEY_LINK_TRANSACTION
Voting key link transaction.
-
VRF_KEY_LINK_TRANSACTION
public static final EntityTypeDto VRF_KEY_LINK_TRANSACTION
Vrf key link transaction.
-
HASH_LOCK_TRANSACTION
public static final EntityTypeDto HASH_LOCK_TRANSACTION
Hash lock 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.
-
ACCOUNT_METADATA_TRANSACTION
public static final EntityTypeDto ACCOUNT_METADATA_TRANSACTION
Account metadata transaction.
-
MOSAIC_METADATA_TRANSACTION
public static final EntityTypeDto MOSAIC_METADATA_TRANSACTION
Mosaic metadata transaction.
-
NAMESPACE_METADATA_TRANSACTION
public static final EntityTypeDto NAMESPACE_METADATA_TRANSACTION
Namespace metadata 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.
-
MULTISIG_ACCOUNT_MODIFICATION_TRANSACTION
public static final EntityTypeDto MULTISIG_ACCOUNT_MODIFICATION_TRANSACTION
Multisig account modification transaction.
-
ADDRESS_ALIAS_TRANSACTION
public static final EntityTypeDto ADDRESS_ALIAS_TRANSACTION
Address alias transaction.
-
MOSAIC_ALIAS_TRANSACTION
public static final EntityTypeDto MOSAIC_ALIAS_TRANSACTION
Mosaic alias transaction.
-
NAMESPACE_REGISTRATION_TRANSACTION
public static final EntityTypeDto NAMESPACE_REGISTRATION_TRANSACTION
Namespace registration transaction.
-
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.
-
MOSAIC_ADDRESS_RESTRICTION_TRANSACTION
public static final EntityTypeDto MOSAIC_ADDRESS_RESTRICTION_TRANSACTION
Mosaic address restriction transaction.
-
MOSAIC_GLOBAL_RESTRICTION_TRANSACTION
public static final EntityTypeDto MOSAIC_GLOBAL_RESTRICTION_TRANSACTION
Mosaic global restriction transaction.
-
TRANSFER_TRANSACTION
public static final EntityTypeDto TRANSFER_TRANSACTION
Transfer 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)
Gets enum value.- Parameters:
value- Raw value of the enum.- Returns:
- Enum value.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Returns:
- Size in bytes.
-
getValue
public short getValue()
Gets the value of the enum.- Returns:
- Value of the enum.
-
loadFromBinary
public static EntityTypeDto loadFromBinary(java.io.DataInputStream stream)
Creates an instance of EntityTypeDto from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of EntityTypeDto.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Returns:
- Serialized bytes.
-
-