Sdílet prostřednictvím


NetworkProtocol Class

public final class NetworkProtocol
extends ExpandableStringEnum<NetworkProtocol>

Network Protocol.

Field Summary

Modifier and Type Field and Description
static final NetworkProtocol ANY

Static value Any for NetworkProtocol.

static final NetworkProtocol ICMP

Static value ICMP for NetworkProtocol.

static final NetworkProtocol TCP

Static value TCP for NetworkProtocol.

static final NetworkProtocol UDP

Static value UDP for NetworkProtocol.

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

Static value Any for NetworkProtocol.

ICMP

public static final NetworkProtocol ICMP

Static value ICMP for NetworkProtocol.

TCP

public static final NetworkProtocol TCP

Static value TCP for NetworkProtocol.

UDP

public static final NetworkProtocol UDP

Static value UDP for NetworkProtocol.

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 values()

Gets known NetworkProtocol values.

Returns:

known NetworkProtocol values.

Applies to