public static enum PayloadSpec.Type extends java.lang.Enum<PayloadSpec.Type>
Enum Constant and Description |
---|
ContractDefinition |
ContractInvocation |
CreateName |
Stake |
Unstake |
UpdateName |
Vote |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
protected java.lang.Class<?>[] |
targets |
Modifier and Type | Method and Description |
---|---|
static PayloadSpec.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PayloadSpec.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PayloadSpec.Type ContractDefinition
public static final PayloadSpec.Type ContractInvocation
public static final PayloadSpec.Type Vote
public static final PayloadSpec.Type Stake
public static final PayloadSpec.Type Unstake
public static final PayloadSpec.Type CreateName
public static final PayloadSpec.Type UpdateName
protected final java.lang.String name
protected final java.lang.Class<?>[] targets
public static PayloadSpec.Type[] values()
for (PayloadSpec.Type c : PayloadSpec.Type.values()) System.out.println(c);
public static PayloadSpec.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null