public enum OptimizeBy extends Enum<OptimizeBy>
| Enum Constant and Description |
|---|
DISTANCE
Optimize By Distance
|
TIME
Optimize By Time
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the value of optimization parameter.
|
static OptimizeBy |
toOptimizeBy(String input)
Converts the specified value to corresponding OptimizeBy choice.
|
static OptimizeBy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptimizeBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptimizeBy TIME
public static final OptimizeBy DISTANCE
public static OptimizeBy[] values()
for (OptimizeBy c : OptimizeBy.values()) System.out.println(c);
public static OptimizeBy 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 nullpublic String getValue()
String, the value of optimization parameter.public static OptimizeBy toOptimizeBy(String input)
For e.g. OptimizeBy.toOptimizeBy("time") gives OptimizeBy.TIME
input - A String, optimization parameter.