public enum MessageKind extends java.lang.Enum<MessageKind>
Enum Constant and Description |
---|
COMPLETEKIND |
FOUNDKIND |
LOSTKIND |
UNKNOWNKIND |
Modifier and Type | Field and Description |
---|---|
static int |
COMPLETEKIND_VALUE |
static int |
FOUNDKIND_VALUE |
static int |
LOSTKIND_VALUE |
static int |
UNKNOWNKIND_VALUE |
static java.util.List<MessageKind> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static MessageKind |
get(int value) |
static MessageKind |
get(java.lang.String literal) |
static MessageKind |
getByName(java.lang.String name) |
java.lang.String |
getLiteral() |
java.lang.String |
getName() |
int |
getValue() |
java.lang.String |
toString() |
static MessageKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageKind COMPLETEKIND
public static final MessageKind LOSTKIND
public static final MessageKind FOUNDKIND
public static final MessageKind UNKNOWNKIND
public static final int COMPLETEKIND_VALUE
public static final int LOSTKIND_VALUE
public static final int FOUNDKIND_VALUE
public static final int UNKNOWNKIND_VALUE
public static final java.util.List<MessageKind> VALUES
public static MessageKind[] values()
for (MessageKind c : MessageKind.values()) System.out.println(c);
public static MessageKind 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 static MessageKind get(java.lang.String literal)
public static MessageKind getByName(java.lang.String name)
public static MessageKind get(int value)
public int getValue()
public java.lang.String getName()
public java.lang.String getLiteral()
public java.lang.String toString()
toString
in class java.lang.Enum<MessageKind>