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