public enum MessageState extends Enum<MessageState>
| Enum Constant and Description |
|---|
CHANGE_MESSAGE |
GOOD_MESSAGE |
MESSAGE |
NEW_MESSAGE |
REPEAT_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
String |
getState() |
String |
toString() |
static MessageState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageState MESSAGE
public static final MessageState GOOD_MESSAGE
public static final MessageState NEW_MESSAGE
public static final MessageState REPEAT_MESSAGE
public static final MessageState CHANGE_MESSAGE
private final String _state
public static MessageState[] values()
for (MessageState c : MessageState.values()) System.out.println(c);
public static MessageState 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 nullpublic String getState()
public String toString()
toString in class Enum<MessageState>