public static enum ParkingLot.ParkingStatus extends Enum<ParkingLot.ParkingStatus>
Enum Constant and Description |
---|
BUSY
Busy.
|
CLOSED
Closed.
|
FULL
Full.
|
NO_PARKING_ALLOWED
No parking allowed.
|
SPECIAL_CONDITIONS_APPLY
Special conditions apply.
|
UNKNOWN
Unknown.
|
VACANT
Vacant.
|
Modifier and Type | Method and Description |
---|---|
static ParkingLot.ParkingStatus |
fromValue(int value)
Gets the parking status by the specified value.
|
int |
getValue()
Gets the parking status as an int.
|
static ParkingLot.ParkingStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParkingLot.ParkingStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParkingLot.ParkingStatus UNKNOWN
public static final ParkingLot.ParkingStatus FULL
public static final ParkingLot.ParkingStatus BUSY
public static final ParkingLot.ParkingStatus VACANT
public static final ParkingLot.ParkingStatus CLOSED
public static final ParkingLot.ParkingStatus NO_PARKING_ALLOWED
public static final ParkingLot.ParkingStatus SPECIAL_CONDITIONS_APPLY
public static ParkingLot.ParkingStatus[] values()
for (ParkingLot.ParkingStatus c : ParkingLot.ParkingStatus.values()) System.out.println(c);
public static ParkingLot.ParkingStatus 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 int getValue()
public static ParkingLot.ParkingStatus fromValue(int value)
value
- The parking status as an int.ParkingLot.ParkingStatus.UNKNOWN
if not found.Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.