public enum FlowerType extends Enum<FlowerType>
| Enum Constant and Description |
|---|
ALLIUM |
CORNFLOWER |
DANDELION |
HOUSTONIA |
LILY_OF_THE_VALLEY |
ORCHID |
OXEYE |
POPPY |
TULIP_ORANGE |
TULIP_PINK |
TULIP_RED |
TULIP_WHITE |
| Modifier and Type | Method and Description |
|---|---|
static FlowerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FlowerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FlowerType DANDELION
public static final FlowerType POPPY
public static final FlowerType ORCHID
public static final FlowerType ALLIUM
public static final FlowerType HOUSTONIA
public static final FlowerType TULIP_RED
public static final FlowerType TULIP_ORANGE
public static final FlowerType TULIP_WHITE
public static final FlowerType TULIP_PINK
public static final FlowerType OXEYE
public static final FlowerType CORNFLOWER
public static final FlowerType LILY_OF_THE_VALLEY
public static FlowerType[] values()
for (FlowerType c : FlowerType.values()) System.out.println(c);
public static FlowerType 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 © 2021. All rights reserved.