public static enum Port.Type extends Enum<Port.Type>
| Enum Constant and Description |
|---|
COPPER
Signifies copper-based connectivity.
|
FIBER
Signifies optical fiber-based connectivity.
|
| Modifier and Type | Method and Description |
|---|---|
static Port.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Port.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Port.Type COPPER
public static final Port.Type FIBER
public static Port.Type[] values()
for (Port.Type c : Port.Type.values()) System.out.println(c);
public static Port.Type 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 © 2015. All rights reserved.