public static enum RestaurantInfo.Fields extends Enum<RestaurantInfo.Fields>
Enum Constant and Description |
---|
AVERAGE_BILL |
CITY |
COUNTRY |
DESCRIPTION |
NAME |
PHONE |
WORK_HOURS |
Modifier and Type | Method and Description |
---|---|
static RestaurantInfo.Fields |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestaurantInfo.Fields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestaurantInfo.Fields COUNTRY
public static final RestaurantInfo.Fields NAME
public static final RestaurantInfo.Fields AVERAGE_BILL
public static final RestaurantInfo.Fields DESCRIPTION
public static final RestaurantInfo.Fields CITY
public static final RestaurantInfo.Fields WORK_HOURS
public static final RestaurantInfo.Fields PHONE
public static RestaurantInfo.Fields[] values()
for (RestaurantInfo.Fields c : RestaurantInfo.Fields.values()) System.out.println(c);
public static RestaurantInfo.Fields 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.