public enum RestaurantType extends Enum<RestaurantType>
Enum Constant and Description |
---|
SPOT |
SPOT_AND_DELIVERY |
Modifier and Type | Method and Description |
---|---|
static RestaurantType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestaurantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestaurantType SPOT
public static final RestaurantType SPOT_AND_DELIVERY
public static RestaurantType[] values()
for (RestaurantType c : RestaurantType.values()) System.out.println(c);
public static RestaurantType 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 nullCopyright © 2015. All rights reserved.