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