public static enum Command.Type extends Enum<Command.Type>
Enum Constant and Description |
---|
CONNECT |
CREATE |
ERROR |
INVITE |
JOIN |
KICK |
LEAVE |
MESG |
NAMES |
NICK |
QUIT |
Modifier and Type | Method and Description |
---|---|
static boolean |
allowsPayload(Command.Type type) |
static int |
getNumParams(Command.Type type) |
static boolean |
requiresPayload(Command.Type type) |
static Command.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command.Type CONNECT
public static final Command.Type NICK
public static final Command.Type CREATE
public static final Command.Type JOIN
public static final Command.Type NAMES
public static final Command.Type MESG
public static final Command.Type LEAVE
public static final Command.Type KICK
public static final Command.Type QUIT
public static final Command.Type INVITE
public static final Command.Type ERROR
public static Command.Type[] values()
for (Command.Type c : Command.Type.values()) System.out.println(c);
public static Command.Type 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 static int getNumParams(Command.Type type)
public static boolean allowsPayload(Command.Type type)
public static boolean requiresPayload(Command.Type type)