public enum MoonPhase extends Enum<MoonPhase>
| Enum Constant and Description |
|---|
FIRST_QUARTER |
FULL_MOON |
LAST_QUARTER |
NEW_MOON |
WANING_CRESCENT |
WANING_GIBBOUS |
WAXING_CRESCENT |
WAXING_GIBBOUS |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull MoonPhase |
getPhase(long day) |
static MoonPhase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MoonPhase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MoonPhase FULL_MOON
public static final MoonPhase WANING_GIBBOUS
public static final MoonPhase LAST_QUARTER
public static final MoonPhase WANING_CRESCENT
public static final MoonPhase NEW_MOON
public static final MoonPhase WAXING_CRESCENT
public static final MoonPhase FIRST_QUARTER
public static final MoonPhase WAXING_GIBBOUS
public static MoonPhase[] values()
for (MoonPhase c : MoonPhase.values()) System.out.println(c);
public static MoonPhase 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.