public static enum PortsWithProtocol.Protocol extends Enum<PortsWithProtocol.Protocol>
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static PortsWithProtocol.Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PortsWithProtocol.Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PortsWithProtocol.Protocol TCP
public static final PortsWithProtocol.Protocol UDP
public static PortsWithProtocol.Protocol[] values()
for (PortsWithProtocol.Protocol c : PortsWithProtocol.Protocol.values()) System.out.println(c);
public static PortsWithProtocol.Protocol 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()
toString in class Enum<PortsWithProtocol.Protocol>Copyright © 2018. All rights reserved.