public static enum Message.MessageType extends Enum<Message.MessageType>
| Enum Constant and Description |
|---|
CHAT |
ERROR |
GROUP_CHAT |
HEADLINE |
NORMAL |
| Modifier and Type | Method and Description |
|---|---|
String |
val() |
static Message.MessageType |
valueFrom(String val) |
static Message.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.MessageType GROUP_CHAT
public static final Message.MessageType CHAT
public static final Message.MessageType ERROR
public static final Message.MessageType HEADLINE
public static final Message.MessageType NORMAL
public static Message.MessageType[] values()
for (Message.MessageType c : Message.MessageType.values()) System.out.println(c);
public static Message.MessageType 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 val()
public static Message.MessageType valueFrom(String val) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.