public static enum ParkingBlock.DurationUnit extends Enum<ParkingBlock.DurationUnit>
Enum Constant and Description |
---|
HOUR
An hour.
|
MINUTE
A minute.
|
OTHER
Other duration unit.
|
Modifier and Type | Method and Description |
---|---|
static ParkingBlock.DurationUnit |
fromValue(String value)
Gets the duration
ParkingBlock.DurationUnit type by the specified value. |
String |
getValue()
Gets the
ParkingBlock.DurationUnit as string. |
String |
toString() |
static ParkingBlock.DurationUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParkingBlock.DurationUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParkingBlock.DurationUnit MINUTE
public static final ParkingBlock.DurationUnit HOUR
public static final ParkingBlock.DurationUnit OTHER
public static ParkingBlock.DurationUnit[] values()
for (ParkingBlock.DurationUnit c : ParkingBlock.DurationUnit.values()) System.out.println(c);
public static ParkingBlock.DurationUnit 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()
ParkingBlock.DurationUnit
as string.public String toString()
toString
in class Enum<ParkingBlock.DurationUnit>
public static ParkingBlock.DurationUnit fromValue(String value)
ParkingBlock.DurationUnit
type by the specified value.value
- The ParkingBlock.DurationUnit
as string.ParkingBlock.DurationUnit
for the specified value, or ParkingBlock.DurationUnit.OTHER
if not found.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.