public enum InternetProtocol extends Enum<InternetProtocol>
| Enum Constant and Description |
|---|
SCTP
The Stream Control Transmission Protocol
|
TCP
The Transmission Control Protocol
|
UDP
The User Datagram Protocol
|
| Modifier and Type | Field and Description |
|---|---|
static InternetProtocol |
DEFAULT
The default
InternetProtocol: TCP |
| Modifier and Type | Method and Description |
|---|---|
static InternetProtocol |
parse(String serialized)
Parses a string to an
InternetProtocol. |
String |
toString()
Returns a string representation of this
InternetProtocol suitable for inclusion in a JSON message. |
static InternetProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InternetProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternetProtocol TCP
public static final InternetProtocol UDP
public static final InternetProtocol SCTP
public static final InternetProtocol DEFAULT
InternetProtocol: TCPpublic static InternetProtocol[] values()
for (InternetProtocol c : InternetProtocol.values()) System.out.println(c);
public static InternetProtocol 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 String toString()
InternetProtocol suitable for inclusion in a JSON message. The output is the
lowercased name of the Protocol, e.g. tcp.toString in class Enum<InternetProtocol>InternetProtocolpublic static InternetProtocol parse(String serialized) throws IllegalArgumentException
InternetProtocol.serialized - the protocol, e.g. tcp or TCPInternetProtocol described by the stringIllegalArgumentException - if the argument cannot be parsedCopyright © 2025. All rights reserved.