net.tomp2p.message
Enum Message.Command
java.lang.Object
java.lang.Enum<Message.Command>
net.tomp2p.message.Message.Command
- All Implemented Interfaces:
- Serializable, Comparable<Message.Command>
- Enclosing class:
- Message
public static enum Message.Command
- extends Enum<Message.Command>
Method Summary |
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. |
PING
public static final Message.Command PING
PUT
public static final Message.Command PUT
COMPARE_PUT
public static final Message.Command COMPARE_PUT
GET
public static final Message.Command GET
ADD
public static final Message.Command ADD
REMOVE
public static final Message.Command REMOVE
NEIGHBORS
public static final Message.Command NEIGHBORS
QUIT
public static final Message.Command QUIT
DIRECT_DATA
public static final Message.Command DIRECT_DATA
TRACKER_ADD
public static final Message.Command TRACKER_ADD
TRACKER_GET
public static final Message.Command TRACKER_GET
PEX
public static final Message.Command PEX
TASK
public static final Message.Command TASK
BROADCAST_DATA
public static final Message.Command BROADCAST_DATA
USER1
public static final Message.Command USER1
USER2
public static final Message.Command USER2
values
public static Message.Command[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Message.Command c : Message.Command.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Message.Command valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2013. All Rights Reserved.