public static enum Customer.Rating extends Enum<Customer.Rating>
Modifier and Type | Method and Description |
---|---|
static Customer.Rating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Customer.Rating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Customer.Rating GOLD
public static final Customer.Rating SILVER
public static final Customer.Rating BRONZE
public static Customer.Rating[] values()
for (Customer.Rating c : Customer.Rating.values()) System.out.println(c);
public static Customer.Rating 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 John's Hopkins University, Engineering Programs for Professionals. All rights reserved.