Package com.casper.sdk.model.event
Enum DataType
- java.lang.Object
-
- java.lang.Enum<DataType>
-
- com.casper.sdk.model.event.DataType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_VERSIONBLOCK_ADDEDDEPLOY_ACCEPTEDDEPLOY_EXPIREDDEPLOY_PROCESSEDFAULTFINALITY_SIGNATURESHUTDOWNSTEP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDataTypeName()static DataTypeof(java.lang.Class dataTypeClass)static DataTypeof(java.lang.String dataTypeSimpleClassName)static DataTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
API_VERSION
public static final DataType API_VERSION
-
BLOCK_ADDED
public static final DataType BLOCK_ADDED
-
DEPLOY_ACCEPTED
public static final DataType DEPLOY_ACCEPTED
-
DEPLOY_EXPIRED
public static final DataType DEPLOY_EXPIRED
-
DEPLOY_PROCESSED
public static final DataType DEPLOY_PROCESSED
-
FAULT
public static final DataType FAULT
-
FINALITY_SIGNATURE
public static final DataType FINALITY_SIGNATURE
-
SHUTDOWN
public static final DataType SHUTDOWN
-
STEP
public static final DataType STEP
-
-
Method Detail
-
values
public static DataType[] 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 (DataType c : DataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataType 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
-
of
public static DataType of(java.lang.Class dataTypeClass)
-
of
public static DataType of(java.lang.String dataTypeSimpleClassName)
-
getDataTypeName
public java.lang.String getDataTypeName()
-
-