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