Serializable, Comparable<Bed.Part>public static enum Bed.Part extends Enum<Bed.Part>
| Enum Constant | Description | 
|---|---|
| FOOT | The foot is the lower half of the bed. | 
| HEAD | The head is the upper part of the bed containing the pillow. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static Bed.Part | valueOf(String name) | Returns the enum constant of this type with the specified name. | 
| static Bed.Part[] | values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final Bed.Part HEAD
public static final Bed.Part FOOT
public static Bed.Part[] values()
for (Bed.Part c : Bed.Part.values()) System.out.println(c);
public static Bed.Part 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 © 2019. All rights reserved.