public enum Bucket extends Enum<Bucket>
| Enum Constant and Description |
|---|
COD |
EMPTY |
LAVA |
MILK |
PUFFERFISH |
SALMON |
TROPICAL_FISH |
WATER |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static Bucket |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bucket[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bucket EMPTY
public static final Bucket MILK
public static final Bucket COD
public static final Bucket SALMON
public static final Bucket TROPICAL_FISH
public static final Bucket PUFFERFISH
public static final Bucket WATER
public static final Bucket LAVA
public static Bucket[] values()
for (Bucket c : Bucket.values()) System.out.println(c);
public static Bucket 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.