public static enum Message.Type extends java.lang.Enum<Message.Type>
Enum Constant and Description |
---|
ALERT |
DATA |
REQUEST |
RESOURCE |
RESPONSE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
alias() |
static Message.Type |
valueOf(java.lang.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.
|
public static final Message.Type DATA
public static final Message.Type REQUEST
public static final Message.Type RESPONSE
public static final Message.Type RESOURCE
public static final Message.Type ALERT
public static Message.Type[] values()
for (Message.Type c : Message.Type.values()) System.out.println(c);
public static Message.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String alias()