public enum ChannelStatus extends Enum<ChannelStatus>
| 枚举常量和说明 |
|---|
CONNECTED
connected
|
CONNECTING
connecting
|
DISCONNECTED
disconnected
|
ERROR
error
|
INIT
init
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDescription() |
int |
getValue() |
void |
setDescription(String description) |
void |
setValue(int value) |
static ChannelStatus |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ChannelStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ChannelStatus INIT
public static final ChannelStatus CONNECTED
public static final ChannelStatus DISCONNECTED
public static final ChannelStatus ERROR
public static final ChannelStatus CONNECTING
public static ChannelStatus[] values()
for (ChannelStatus c : ChannelStatus.values()) System.out.println(c);
public static ChannelStatus valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
public void setValue(int value)
public String getDescription()
public void setDescription(String description)
Copyright © 2022. All rights reserved.