NetworkProtocol Class

public final class NetworkProtocol
extends ExpandableStringEnum<NetworkProtocol>

Network Protocol.

Field Summary

Modifier and Type Field and Description
static final NetworkProtocol ANY

Any.

static final NetworkProtocol ICMP

ICMP.

static final NetworkProtocol TCP

TCP.

static final NetworkProtocol UDP

UDP.

Constructor Summary

Constructor Description
NetworkProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkProtocol value.

Method Summary

Modifier and Type Method and Description
static NetworkProtocol fromString(String name)

Creates or finds a NetworkProtocol from its string representation.

static Collection<NetworkProtocol> values()

Gets known NetworkProtocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ANY

public static final NetworkProtocol ANY

Any.

ICMP

public static final NetworkProtocol ICMP

ICMP.

TCP

public static final NetworkProtocol TCP

TCP.

UDP

public static final NetworkProtocol UDP

UDP.

Constructor Details

NetworkProtocol

@Deprecated
public NetworkProtocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetworkProtocol value.

Method Details

fromString

public static NetworkProtocol fromString(String name)

Creates or finds a NetworkProtocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding NetworkProtocol.

values

public static Collection<NetworkProtocol> values()

Gets known NetworkProtocol values.

Returns:

known NetworkProtocol values.

Applies to