public enum EzyCommand extends Enum<EzyCommand> implements com.tvd12.ezyfox.constant.EzyConstant
| Enum Constant and Description |
|---|
APP_ACCESS |
APP_ACCESS_ERROR |
APP_EXIT |
APP_REQUEST |
APP_REQUEST_ERROR |
DISCONNECT |
ERROR |
HANDSHAKE |
LOGIN |
LOGIN_ERROR |
PING |
PLUGIN_INFO |
PLUGIN_REQUEST |
PONG |
UDP_HANDSHAKE |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
isSystemCommand() |
static EzyCommand |
valueOf(int id) |
static EzyCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EzyCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EzyCommand ERROR
public static final EzyCommand HANDSHAKE
public static final EzyCommand PING
public static final EzyCommand PONG
public static final EzyCommand DISCONNECT
public static final EzyCommand LOGIN
public static final EzyCommand LOGIN_ERROR
public static final EzyCommand APP_ACCESS
public static final EzyCommand APP_REQUEST
public static final EzyCommand APP_EXIT
public static final EzyCommand APP_ACCESS_ERROR
public static final EzyCommand APP_REQUEST_ERROR
public static final EzyCommand PLUGIN_INFO
public static final EzyCommand PLUGIN_REQUEST
public static final EzyCommand UDP_HANDSHAKE
public static EzyCommand[] values()
for (EzyCommand c : EzyCommand.values()) System.out.println(c);
public static EzyCommand 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 isSystemCommand()
public String getName()
getName in interface com.tvd12.ezyfox.constant.EzyConstantgetName in interface com.tvd12.ezyfox.constant.EzyHasNamepublic static EzyCommand valueOf(int id)
Copyright © 2021 Young Monkeys. All rights reserved.