public enum IPProtocol extends Enum<IPProtocol>
Modifier and Type | Method and Description |
---|---|
static IPProtocol |
get(int id)
Retrieves the IP protocol for the given ID.
|
int |
getID()
Retrieves the IP protocol ID.
|
String |
getName()
Retrieves the IP protocol name.
|
String |
toString() |
static IPProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IPProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IPProtocol TCP
public static final IPProtocol TCP_SSL
public static final IPProtocol UDP
public static IPProtocol get(int id)
id
- ID to retrieve the IP protocol.public int getID()
public String toString()
toString
in class Enum<IPProtocol>
public static IPProtocol 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 static IPProtocol[] values()
for (IPProtocol c : IPProtocol.values()) System.out.println(c);
© Copyright 2014 - 2017 Digi International Inc. All rights reserved.