public enum EzyDisconnectReason extends Enum<EzyDisconnectReason> implements com.tvd12.ezyfox.constant.EzyConstant
| Enum Constant and Description |
|---|
ADMIN_BAN |
ADMIN_KICK |
ANOTHER_SESSION_LOGIN |
IDLE |
MAX_REQUEST_PER_SECOND |
MAX_REQUEST_SIZE |
NOT_LOGGED_IN |
SERVER_ERROR |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static EzyDisconnectReason |
valueOf(int id) |
static EzyDisconnectReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EzyDisconnectReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EzyDisconnectReason UNKNOWN
public static final EzyDisconnectReason IDLE
public static final EzyDisconnectReason NOT_LOGGED_IN
public static final EzyDisconnectReason ANOTHER_SESSION_LOGIN
public static final EzyDisconnectReason ADMIN_BAN
public static final EzyDisconnectReason ADMIN_KICK
public static final EzyDisconnectReason MAX_REQUEST_PER_SECOND
public static final EzyDisconnectReason MAX_REQUEST_SIZE
public static final EzyDisconnectReason SERVER_ERROR
public static EzyDisconnectReason[] values()
for (EzyDisconnectReason c : EzyDisconnectReason.values()) System.out.println(c);
public static EzyDisconnectReason 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 String getName()
getName in interface com.tvd12.ezyfox.constant.EzyConstantgetName in interface com.tvd12.ezyfox.constant.EzyHasNamepublic static EzyDisconnectReason valueOf(int id)
Copyright © 2021 Young Monkeys. All rights reserved.