public static enum Message.Command extends Enum<Message.Command>
| Enum Constant and Description |
|---|
ADD |
DIRECT_DATA |
GET |
NEIGHBORS_STORAGE |
NEIGHBORS_TRACKER |
PING |
PUT |
QUIT |
REMOVE |
SYNC |
TRACKER_ADD |
TRACKER_GET |
USER1 |
USER2 |
USER3 |
USER4 |
| 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 GET
public static final Message.Command ADD
public static final Message.Command REMOVE
public static final Message.Command SYNC
public static final Message.Command NEIGHBORS_STORAGE
public static final Message.Command NEIGHBORS_TRACKER
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 USER1
public static final Message.Command USER2
public static final Message.Command USER3
public static final Message.Command USER4
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 © 2011. All Rights Reserved.