public enum DeliveryCategory extends Enum<DeliveryCategory>
| Enum Constant and Description |
|---|
curbside
Customer picks up their order by driving to a store and waiting inside their vehicle.
|
home_delivery
Purchase is delivered to the customer's home.
|
in_store
Customer needs to enter the store to get the purchased product.
|
| Modifier and Type | Method and Description |
|---|---|
static DeliveryCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeliveryCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeliveryCategory in_store
public static final DeliveryCategory curbside
public static final DeliveryCategory home_delivery
public static DeliveryCategory[] values()
for (DeliveryCategory c : DeliveryCategory.values()) System.out.println(c);
public static DeliveryCategory 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 © 2020. All rights reserved.