public static enum MessageEvent.Type extends Enum<MessageEvent.Type>
MessageEvent
.Enum Constant and Description |
---|
RECEIVED
When the message was received.
|
SENT
When the message was sent.
|
Modifier and Type | Method and Description |
---|---|
static MessageEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageEvent.Type SENT
public static final MessageEvent.Type RECEIVED
public static MessageEvent.Type[] values()
for (MessageEvent.Type c : MessageEvent.Type.values()) System.out.println(c);
public static MessageEvent.Type 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 null