net.tomp2p.message
Enum Message.Type
java.lang.Object
java.lang.Enum<Message.Type>
net.tomp2p.message.Message.Type
- All Implemented Interfaces:
- Serializable, Comparable<Message.Type>
- Enclosing class:
- Message
public static enum Message.Type
- extends Enum<Message.Type>
Method Summary |
static Message.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Message.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
REQUEST_1
public static final Message.Type REQUEST_1
REQUEST_2
public static final Message.Type REQUEST_2
REQUEST_3
public static final Message.Type REQUEST_3
REQUEST_4
public static final Message.Type REQUEST_4
REQUEST_FF_1
public static final Message.Type REQUEST_FF_1
REQUEST_FF_2
public static final Message.Type REQUEST_FF_2
OK
public static final Message.Type OK
PARTIALLY_OK
public static final Message.Type PARTIALLY_OK
NOT_FOUND
public static final Message.Type NOT_FOUND
DENIED
public static final Message.Type DENIED
UNKNOWN_ID
public static final Message.Type UNKNOWN_ID
EXCEPTION
public static final Message.Type EXCEPTION
CANCEL
public static final Message.Type CANCEL
USER1
public static final Message.Type USER1
USER2
public static final Message.Type USER2
values
public static Message.Type[] 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.Type c : Message.Type.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.Type 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.