Package com.casper.sdk.model.storedvalue
Enum StoredValueTypeData
- java.lang.Object
-
- java.lang.Enum<StoredValueTypeData>
-
- com.casper.sdk.model.storedvalue.StoredValueTypeData
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<StoredValueTypeData>
public enum StoredValueTypeData extends java.lang.Enum<StoredValueTypeData>
Stored Value type data and class mapping- Since:
- 0.0.1
- See Also:
StoredValue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description STORED_VALUE_ACCOUNTSTORED_VALUE_BIDSTORED_VALUE_CLVALUESTORED_VALUE_CONTRACTSTORED_VALUE_CONTRACT_PACKAGESTORED_VALUE_DEPLOY_INFOSTORED_VALUE_ERA_INFOSTORED_VALUE_TRANSFERSTORED_VALUE_WITHDRAW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Class<?>getClassByName(java.lang.String name)Retrieve Transform implementation class from Transform namejava.lang.Class<?>getClazz()java.lang.StringgetName()static StoredValueTypeDatavalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static StoredValueTypeData[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STORED_VALUE_CLVALUE
public static final StoredValueTypeData STORED_VALUE_CLVALUE
-
STORED_VALUE_ACCOUNT
public static final StoredValueTypeData STORED_VALUE_ACCOUNT
-
STORED_VALUE_CONTRACT_PACKAGE
public static final StoredValueTypeData STORED_VALUE_CONTRACT_PACKAGE
-
STORED_VALUE_CONTRACT
public static final StoredValueTypeData STORED_VALUE_CONTRACT
-
STORED_VALUE_TRANSFER
public static final StoredValueTypeData STORED_VALUE_TRANSFER
-
STORED_VALUE_DEPLOY_INFO
public static final StoredValueTypeData STORED_VALUE_DEPLOY_INFO
-
STORED_VALUE_ERA_INFO
public static final StoredValueTypeData STORED_VALUE_ERA_INFO
-
STORED_VALUE_BID
public static final StoredValueTypeData STORED_VALUE_BID
-
STORED_VALUE_WITHDRAW
public static final StoredValueTypeData STORED_VALUE_WITHDRAW
-
-
Method Detail
-
values
public static StoredValueTypeData[] 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 (StoredValueTypeData c : StoredValueTypeData.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoredValueTypeData 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
-
getClassByName
public static java.lang.Class<?> getClassByName(java.lang.String name) throws NoSuchTypeExceptionRetrieve Transform implementation class from Transform name- Parameters:
name- the name to use for fetching class- Returns:
- the class object for given name
- Throws:
NoSuchTypeException- thrown if class type not found
-
getName
public java.lang.String getName()
-
getClazz
public java.lang.Class<?> getClazz()
-
-