Serializable
, Comparable<StateBlockSubType>
public enum StateBlockSubType extends Enum<StateBlockSubType>
Enum Constant | Description |
---|---|
CHANGE_REP |
|
EPOCH |
|
OPEN |
|
RECEIVE |
|
SEND |
Modifier and Type | Method | Description |
---|---|---|
static StateBlockSubType |
getFromLegacyType(BlockType type) |
Returns the enum constant of this type corresponding to the legacy
BlockType . |
static StateBlockSubType |
getFromName(String name) |
Returns the enum constant of this type from the given official name.
|
BlockType |
getLegacyType() |
|
String |
getProtocolName() |
|
boolean |
isTransaction() |
|
String |
toString() |
|
static StateBlockSubType |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static StateBlockSubType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName("send") public static final StateBlockSubType SEND
@SerializedName("receive") public static final StateBlockSubType RECEIVE
@SerializedName("open") public static final StateBlockSubType OPEN
@SerializedName("change") public static final StateBlockSubType CHANGE_REP
@SerializedName("epoch") public static final StateBlockSubType EPOCH
public static StateBlockSubType[] values()
for (StateBlockSubType c : StateBlockSubType.values()) System.out.println(c);
public static StateBlockSubType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTransaction()
public String getProtocolName()
public BlockType getLegacyType()
BlockType
which represents the same activity, or null if there isn't onepublic String toString()
toString
in class Enum<StateBlockSubType>
public static StateBlockSubType getFromLegacyType(BlockType type)
BlockType
.type
- the legacy block typepublic static StateBlockSubType getFromName(String name)
name
- the official type nameCopyright © 2020. All rights reserved.