Package org.fisco.bcos.sdk.channel.model
Enum EnumNodeVersion
java.lang.Object
java.lang.Enum<EnumNodeVersion>
org.fisco.bcos.sdk.channel.model.EnumNodeVersion
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnumNodeVersion>
,java.lang.constant.Constable
public enum EnumNodeVersion extends java.lang.Enum<EnumNodeVersion>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
EnumNodeVersion.Version
-
Enum Constant Summary
Enum Constants Enum Constant Description BCOS_2_0_0
BCOS_2_0_0_RC1
BCOS_2_1_0
-
Method Summary
Modifier and Type Method Description static boolean
channelProtocolHandleShakeSupport(java.lang.String version)
static EnumNodeVersion.Version
getClassVersion(java.lang.String version)
java.lang.String
getVersion()
void
setVersion(java.lang.String version)
static EnumNodeVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnumNodeVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getVersion
public java.lang.String getVersion() -
setVersion
public void setVersion(java.lang.String version) -
getClassVersion
public static EnumNodeVersion.Version getClassVersion(java.lang.String version) throws ChannelPrococolExceiption- Throws:
ChannelPrococolExceiption
-
channelProtocolHandleShakeSupport
public static boolean channelProtocolHandleShakeSupport(java.lang.String version) throws ChannelPrococolExceiption- Throws:
ChannelPrococolExceiption
-