public static enum Constants.ShortestPathType extends java.lang.Enum<Constants.ShortestPathType>
Enum Constant and Description |
---|
HOPS
Shortest path measured in hops (each link has a weight equal to 1).
|
KM
Shortest path measured in km (each link has a weight equal to its length in km).
|
Modifier and Type | Method and Description |
---|---|
static Constants.ShortestPathType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.ShortestPathType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.ShortestPathType HOPS
public static final Constants.ShortestPathType KM
public static Constants.ShortestPathType[] values()
for (Constants.ShortestPathType c : Constants.ShortestPathType.values()) System.out.println(c);
public static Constants.ShortestPathType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null