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