public static enum L2Path.Metric extends Enum<L2Path.Metric>
| Enum Constant and Description |
|---|
HOPS
Shortest path means least number of traversed nodes.
|
SPEED
Shortest path means greatest combined link speed.
|
| Modifier and Type | Method and Description |
|---|---|
static L2Path.Metric |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static L2Path.Metric[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final L2Path.Metric HOPS
public static final L2Path.Metric SPEED
public static L2Path.Metric[] values()
for (L2Path.Metric c : L2Path.Metric.values()) System.out.println(c);
public static L2Path.Metric 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 © 2014. All Rights Reserved.