public static enum Packet.State extends Enum<Packet.State>
Enum Constant and Description |
---|
ClientRequest |
ClientResponse |
ServerRequest |
ServerResponse |
Modifier and Type | Method and Description |
---|---|
boolean |
isInbound() |
static Packet.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Packet.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Packet.State ServerRequest
public static final Packet.State ClientRequest
public static final Packet.State ServerResponse
public static final Packet.State ClientResponse
public static Packet.State[] values()
for (Packet.State c : Packet.State.values()) System.out.println(c);
public static Packet.State 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 boolean isInbound()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.