public static enum SunriseSunset.DayPeriod extends Enum<SunriseSunset.DayPeriod>
| Enum Constant and Description |
|---|
ASTRONOMICAL_TWILIGHT |
CIVIL_TWILIGHT |
DAY |
NAUTICAL_TWILIGHT |
NIGHT |
| Modifier and Type | Method and Description |
|---|---|
static SunriseSunset.DayPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SunriseSunset.DayPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SunriseSunset.DayPeriod DAY
public static final SunriseSunset.DayPeriod CIVIL_TWILIGHT
public static final SunriseSunset.DayPeriod NAUTICAL_TWILIGHT
public static final SunriseSunset.DayPeriod ASTRONOMICAL_TWILIGHT
public static final SunriseSunset.DayPeriod NIGHT
public static SunriseSunset.DayPeriod[] values()
for (SunriseSunset.DayPeriod c : SunriseSunset.DayPeriod.values()) System.out.println(c);
public static SunriseSunset.DayPeriod 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 © 2013–2017. All rights reserved.