public enum AstronomicalSeason extends Enum<AstronomicalSeason>
The four astronomical seasons (Spring, Summer, Autumn and Winter).
If there is no context information then Time4J will assume that any season is related to the northern hemisphere.
| Enum Constant and Description |
|---|
AUTUMNAL_EQUINOX
Begin of Autumn on the northern hemisphere in September (or Spring on the southern hemisphere).
|
SUMMER_SOLSTICE
Begin of Summer on the northern hemisphere in June (or Winter on the southern hemisphere).
|
VERNAL_EQUINOX
Begin of Spring on the northern hemisphere in March (or Autumn on the southern hemisphere).
|
WINTER_SOLSTICE
Begin of Winter on the northern hemisphere in December (or Summer on the southern hemisphere).
|
| Modifier and Type | Method and Description |
|---|---|
Moment |
inYear(int year)
Determines the moment of this astronomical event in given year.
|
JulianDay |
julianDay(int year)
Determines the Julian day of this astronomical event in given year.
|
static AstronomicalSeason |
of(Moment moment)
Determines the astronomical season related to given moment.
|
AstronomicalSeason |
onNorthernHemisphere()
Interpretes this season as related to the northern hemisphere and returns
this instance unchanged.
|
AstronomicalSeason |
onSouthernHemisphere()
Interpretes this season as related to the southern hemisphere and returns
the corresponding northern equivalent.
|
static AstronomicalSeason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AstronomicalSeason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AstronomicalSeason VERNAL_EQUINOX
Begin of Spring on the northern hemisphere in March (or Autumn on the southern hemisphere).
public static final AstronomicalSeason SUMMER_SOLSTICE
Begin of Summer on the northern hemisphere in June (or Winter on the southern hemisphere).
public static final AstronomicalSeason AUTUMNAL_EQUINOX
Begin of Autumn on the northern hemisphere in September (or Spring on the southern hemisphere).
public static final AstronomicalSeason WINTER_SOLSTICE
Begin of Winter on the northern hemisphere in December (or Summer on the southern hemisphere).
public static AstronomicalSeason[] values()
for (AstronomicalSeason c : AstronomicalSeason.values()) System.out.println(c);
public static AstronomicalSeason 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 nullpublic static AstronomicalSeason of(Moment moment)
Determines the astronomical season related to given moment.
The result will be valid for the northern hemisphere. For the southern equivalent, please call
the method onSouthernHemisphere() on the result.
moment - the moment/instant for which the season is to be determinedIllegalArgumentException - if the year is out of range -2000 <= year <= +3000public Moment inYear(int year)
Determines the moment of this astronomical event in given year.
The precision is for modern times (around 2000) better than a minute. The underlying astronomical calculations are based on formula given by Jean Meeus in his book "Astronomical algorithms".
year - gregorian/julian yearIllegalArgumentException - if the year is out of range -2000 <= year <= +3000public JulianDay julianDay(int year)
Determines the Julian day of this astronomical event in given year.
The precision is for modern times (around 2000) better than a minute. The underlying astronomical calculations are based on formula given by Jean Meeus in his book "Astronomical algorithms".
year - gregorian/julian yearIllegalArgumentException - if the year is out of range -2000 <= year <= +3000JulianDay.ofEphemerisTime(double)public AstronomicalSeason onNorthernHemisphere()
Interpretes this season as related to the northern hemisphere and returns this instance unchanged.
This method does not change anything but serves for better documentation and more clarity about the meaning of this season.
onSouthernHemisphere()public AstronomicalSeason onSouthernHemisphere()
Interpretes this season as related to the southern hemisphere and returns the corresponding northern equivalent.
onNorthernHemisphere()Copyright © 2014–2021. All rights reserved.