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