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