Package com.casper.sdk.model.key
Enum KeyTag
- java.lang.Object
-
- java.lang.Enum<KeyTag>
-
- com.casper.sdk.model.key.KeyTag
-
public enum KeyTag extends java.lang.Enum<KeyTag> implements Tag
- Since:
- 0.0.1
- See Also:
StoredValueData
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNTADDRESSABLE_ENTITYBALANCEBALANCE_HOLDBIDBID_ADDRBLOCK_GLOBALBYTE_CODECHAINSPEC_REGISTRYCHECKSUM_REGISTRYDEPLOY_INFODICTIONARYENTRY_POINTERA_INFOERA_SUMMARYHASHMESSAGENAMED_KEYPACKAGESYSTEM_ENTITY_REGISTRYTRANSFERUNBONDUREFWITHDRAW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyTaggetByKeyName(java.lang.String keyName)static KeyTaggetByTag(byte tag)bytegetByteTag()java.lang.Class<? extends Key>getKeyClass()java.lang.StringgetKeyName()java.lang.String[]getKeyNames()static KeyTagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KeyTag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCOUNT
public static final KeyTag ACCOUNT
-
HASH
public static final KeyTag HASH
-
UREF
public static final KeyTag UREF
-
TRANSFER
public static final KeyTag TRANSFER
-
DEPLOY_INFO
public static final KeyTag DEPLOY_INFO
-
ERA_INFO
public static final KeyTag ERA_INFO
-
BALANCE
public static final KeyTag BALANCE
-
BID
public static final KeyTag BID
-
WITHDRAW
public static final KeyTag WITHDRAW
-
DICTIONARY
public static final KeyTag DICTIONARY
-
SYSTEM_ENTITY_REGISTRY
public static final KeyTag SYSTEM_ENTITY_REGISTRY
-
ERA_SUMMARY
public static final KeyTag ERA_SUMMARY
-
UNBOND
public static final KeyTag UNBOND
-
CHAINSPEC_REGISTRY
public static final KeyTag CHAINSPEC_REGISTRY
-
CHECKSUM_REGISTRY
public static final KeyTag CHECKSUM_REGISTRY
-
BID_ADDR
public static final KeyTag BID_ADDR
-
PACKAGE
public static final KeyTag PACKAGE
-
ADDRESSABLE_ENTITY
public static final KeyTag ADDRESSABLE_ENTITY
-
BYTE_CODE
public static final KeyTag BYTE_CODE
-
MESSAGE
public static final KeyTag MESSAGE
-
NAMED_KEY
public static final KeyTag NAMED_KEY
-
BLOCK_GLOBAL
public static final KeyTag BLOCK_GLOBAL
-
ENTRY_POINT
public static final KeyTag ENTRY_POINT
-
BALANCE_HOLD
public static final KeyTag BALANCE_HOLD
-
-
Method Detail
-
values
public static KeyTag[] 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 (KeyTag c : KeyTag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyTag 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
-
getByTag
public static KeyTag getByTag(byte tag) throws NoSuchKeyTagException
- Throws:
NoSuchKeyTagException
-
getByKeyName
public static KeyTag getByKeyName(java.lang.String keyName) throws NoSuchKeyTagException
- Throws:
NoSuchKeyTagException
-
getKeyName
public java.lang.String getKeyName()
-
getByteTag
public byte getByteTag()
- Specified by:
getByteTagin interfaceTag
-
getKeyClass
public java.lang.Class<? extends Key> getKeyClass()
-
getKeyNames
public java.lang.String[] getKeyNames()
-
-