public enum NetsenseEvent extends Enum<NetsenseEvent>
| Enum Constant and Description |
|---|
DNS_PACKET |
IN_PACKET |
OUT_PACKET |
PACKET |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(String label) |
boolean |
matches(int value) |
static EnumSet<NetsenseEvent> |
parse(int... codes) |
static EnumSet<NetsenseEvent> |
parse(String... labels) |
String |
toString() |
int |
value() |
static NetsenseEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetsenseEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetsenseEvent PACKET
public static final NetsenseEvent IN_PACKET
public static final NetsenseEvent OUT_PACKET
public static final NetsenseEvent DNS_PACKET
public static NetsenseEvent[] values()
for (NetsenseEvent c : NetsenseEvent.values()) System.out.println(c);
public static NetsenseEvent 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 int value()
public final boolean matches(int value)
public final boolean equals(String label)
public final String toString()
toString in class Enum<NetsenseEvent>public static final EnumSet<NetsenseEvent> parse(String... labels)
public static final EnumSet<NetsenseEvent> parse(int... codes)