public enum HistoricSpeedBucket extends Enum<HistoricSpeedBucket>
| Enum Constant and Description |
|---|
AM_PEAK
Calculates route with the peak AM speeds.
|
NIGHT_SPEED
Calculates route with the night time speeds.
|
NONE
Default value for HistoricSpeedBucket.
|
OFF_PEAK
Calculates route with the off peak (daytime) speeds.
|
PM_PEAK
Calculates route with the peak PM speeds.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Returns the value of the HistoricSpeedBucket.
|
static HistoricSpeedBucket |
toHistoricTrafficTimeBucket(String input)
Converts the specified value to corresponding HistoricSpeedBucket choice.
|
static HistoricSpeedBucket |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HistoricSpeedBucket[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HistoricSpeedBucket NONE
public static final HistoricSpeedBucket AM_PEAK
public static final HistoricSpeedBucket PM_PEAK
public static final HistoricSpeedBucket OFF_PEAK
public static final HistoricSpeedBucket NIGHT_SPEED
public static HistoricSpeedBucket[] values()
for (HistoricSpeedBucket c : HistoricSpeedBucket.values()) System.out.println(c);
public static HistoricSpeedBucket 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 the HistoricSpeedBucket.public static HistoricSpeedBucket toHistoricTrafficTimeBucket(String input)
For e.g. HistoricSpeedBucket.toHistoricTrafficTimeBucket("ampeak") gives HistoricSpeedBucket.AM_PEAK
input - A String, historic speed bucket value.