public enum ServerEventEnums extends Enum<ServerEventEnums> implements EventEnums
| 枚举常量和说明 |
|---|
serverStarted |
serverStarting |
serverStopped |
serverStopping |
systemActivated |
systemActivating |
systemDeleted |
systemDeleting |
systemFreezed |
systemFreezing |
systemSaved |
systemSaving |
| 限定符和类型 | 方法和说明 |
|---|---|
static ServerEventEnums |
fromMethod(String method) |
static ServerEventEnums |
fromType(String typeName) |
String |
getMethod() |
String |
getName() |
String |
getType() |
void |
setMethod(String method) |
void |
setName(String name) |
String |
toString() |
static ServerEventEnums |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ServerEventEnums[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ServerEventEnums serverStarting
public static final ServerEventEnums serverStarted
public static final ServerEventEnums serverStopping
public static final ServerEventEnums serverStopped
public static final ServerEventEnums systemActivating
public static final ServerEventEnums systemActivated
public static final ServerEventEnums systemFreezing
public static final ServerEventEnums systemFreezed
public static final ServerEventEnums systemSaving
public static final ServerEventEnums systemSaved
public static final ServerEventEnums systemDeleting
public static final ServerEventEnums systemDeleted
public static ServerEventEnums[] values()
for (ServerEventEnums c : ServerEventEnums.values()) System.out.println(c);
public static ServerEventEnums valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getMethod()
getMethod 在接口中 EventEnumspublic void setMethod(String method)
public void setName(String name)
public String toString()
toString 在类中 Enum<ServerEventEnums>public static ServerEventEnums fromMethod(String method)
public static ServerEventEnums fromType(String typeName)
Copyright © 2023 onecode. All rights reserved.