public enum MsgType extends Enum<MsgType> implements Enumstype
| 枚举常量和说明 |
|---|
ALARM |
COMMAND |
ERRORREPORT |
EVENT |
LOG |
MSG |
PASSWORD |
PYPASSWORD |
SENSOR |
TOPIC |
| 限定符和类型 | 方法和说明 |
|---|---|
static MsgType |
fromClass(Class clazz) |
static MsgType |
fromType(String typeName) |
Class |
getClazz() |
String |
getName() |
String |
getType() |
String |
toString() |
static MsgType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MsgType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MsgType MSG
public static final MsgType LOG
public static final MsgType EVENT
public static final MsgType ALARM
public static final MsgType SENSOR
public static final MsgType TOPIC
public static final MsgType COMMAND
public static final MsgType ERRORREPORT
public static final MsgType PASSWORD
public static final MsgType PYPASSWORD
public static MsgType[] values()
for (MsgType c : MsgType.values()) System.out.println(c);
public static MsgType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public Class getClazz()
Copyright © 2023 onecode. All rights reserved.