public static enum RideOffer.TransitType extends Enum<RideOffer.TransitType>
Enum Constant and Description |
---|
PUBLIC_TRANSPORT
Public transportation.
|
TAXI
Taxi.
|
Modifier and Type | Method and Description |
---|---|
static RideOffer.TransitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RideOffer.TransitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RideOffer.TransitType TAXI
TaxiRideOffer
public static final RideOffer.TransitType PUBLIC_TRANSPORT
PublicTransportRideOffer
public static RideOffer.TransitType[] values()
for (RideOffer.TransitType c : RideOffer.TransitType.values()) System.out.println(c);
public static RideOffer.TransitType 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 null