public enum CTCPCommand extends Enum<CTCPCommand>
| Enum Constant and Description |
|---|
ACTION |
CLIENTINFO |
DCC |
ERRMSG |
FINGER |
PING |
SED |
SOURCE |
TIME |
USERINFO |
VERSION |
| Modifier and Type | Field and Description |
|---|---|
static char |
QUOTE_CHAR |
static int |
SHORTEST_COMMAND_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static CTCPCommand |
fastValueOf(String command)
|
static CTCPCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CTCPCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CTCPCommand ACTION
public static final CTCPCommand DCC
public static final CTCPCommand SED
public static final CTCPCommand FINGER
public static final CTCPCommand VERSION
public static final CTCPCommand SOURCE
public static final CTCPCommand USERINFO
public static final CTCPCommand CLIENTINFO
public static final CTCPCommand ERRMSG
public static final CTCPCommand PING
public static final CTCPCommand TIME
public static final int SHORTEST_COMMAND_LENGTH
public static final char QUOTE_CHAR
public static CTCPCommand[] values()
for (CTCPCommand c : CTCPCommand.values()) System.out.println(c);
public static CTCPCommand 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 CTCPCommand fastValueOf(String command)
command - the command as a StringCTCPCommand that corresponds to the given string
command or null if no such command existsCopyright © 2006–2015. All rights reserved.