public static enum Message.Command extends Enum<Message.Command>
Enum Constant and Description |
---|
ADD |
BROADCAST_DATA |
COMPARE_PUT |
DIRECT_DATA |
GET |
NEIGHBORS |
PEX |
PING |
PUT |
QUIT |
REMOVE |
TASK |
TRACKER_ADD |
TRACKER_GET |
USER1 |
USER2 |
Modifier and Type | Method and Description |
---|---|
static Message.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Command PING
public static final Message.Command PUT
public static final Message.Command COMPARE_PUT
public static final Message.Command GET
public static final Message.Command ADD
public static final Message.Command REMOVE
public static final Message.Command NEIGHBORS
public static final Message.Command QUIT
public static final Message.Command DIRECT_DATA
public static final Message.Command TRACKER_ADD
public static final Message.Command TRACKER_GET
public static final Message.Command PEX
public static final Message.Command TASK
public static final Message.Command BROADCAST_DATA
public static final Message.Command USER1
public static final Message.Command USER2
public static Message.Command[] values()
for (Message.Command c : Message.Command.values()) System.out.println(c);
public static Message.Command 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 © 2013. All Rights Reserved.