public static enum NetworkProtocolEvent.NetworkType extends java.lang.Enum<NetworkProtocolEvent.NetworkType>
| Enum Constant and Description |
|---|
TCP
The layer being observed uses TCP as its transport protocol
|
UDP
The layer being observed uses UDP as its transport protocol
|
| Modifier and Type | Method and Description |
|---|---|
static NetworkProtocolEvent.NetworkType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkProtocolEvent.NetworkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkProtocolEvent.NetworkType TCP
public static final NetworkProtocolEvent.NetworkType UDP
public static NetworkProtocolEvent.NetworkType[] values()
for (NetworkProtocolEvent.NetworkType c : NetworkProtocolEvent.NetworkType.values()) System.out.println(c);
public static NetworkProtocolEvent.NetworkType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null