public static enum StatusPacket.Status extends Enum<StatusPacket.Status>
| Enum Constant and Description |
|---|
LOGIN_FAILURE |
LOGIN_SUCCESS |
OUTDATED_CLIENT |
OUTDATED_SERVER |
| Modifier and Type | Method and Description |
|---|---|
static StatusPacket.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusPacket.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusPacket.Status LOGIN_SUCCESS
public static final StatusPacket.Status LOGIN_FAILURE
public static final StatusPacket.Status OUTDATED_CLIENT
public static final StatusPacket.Status OUTDATED_SERVER
public static StatusPacket.Status[] values()
for (StatusPacket.Status c : StatusPacket.Status.values()) System.out.println(c);
public static StatusPacket.Status 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 nullCopyright © 2018. All rights reserved.