public enum Zodiac extends Enum<Zodiac>
Enumeration of the thirteen astronomical zodiac definitions.
See also Wikipedia. The boundaries of the associated constellations have been defined by IAU (International Astronomical Union).
Attention: Users are required to make a strict difference between constellations and the twelve astrological (horoscopic) zodiacs. Latter type is also supported by specialized methods.
| Modifier and Type | Class and Description |
|---|---|
static class |
Zodiac.Event
Represents the event when the sun or moon enters or exits a zodiac.
|
| Enum Constant and Description |
|---|
AQUARIUS |
ARIES |
CANCER |
CAPRICORNUS |
GEMINI |
LEO |
LIBRA |
OPHIUCHUS |
PISCES |
SAGITTARIUS |
SCORPIUS |
TAURUS |
VIRGO |
| Modifier and Type | Method and Description |
|---|---|
static Zodiac |
constellationPassedByMoon(Moment moment)
Determines the zodiac constellation passed by the moon at given moment.
|
static Zodiac |
constellationPassedBySun(Moment moment)
Determines the zodiac constellation passed by the sun at given moment.
|
String |
getDisplayName(Locale locale)
Obtains a localized name.
|
char |
getSymbol()
Obtains the associated symbol character.
|
Zodiac |
next()
Obtains the zodiac which happens next after this zodiac.
|
Zodiac |
previous()
Obtains the zodiac which happens previous before this zodiac.
|
static Zodiac |
signPassedByMoon(Moment moment)
Determines the zodiac sign passed by the moon at given moment.
|
static Zodiac |
signPassedBySun(Moment moment)
Determines the zodiac sign passed by the sun at given moment.
|
static Zodiac |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Zodiac[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Zodiac ARIES
public static final Zodiac TAURUS
public static final Zodiac GEMINI
public static final Zodiac CANCER
public static final Zodiac LEO
public static final Zodiac VIRGO
public static final Zodiac LIBRA
public static final Zodiac SCORPIUS
public static final Zodiac OPHIUCHUS
public static final Zodiac SAGITTARIUS
public static final Zodiac CAPRICORNUS
public static final Zodiac AQUARIUS
public static final Zodiac PISCES
public static Zodiac[] values()
for (Zodiac c : Zodiac.values()) System.out.println(c);
public static Zodiac 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 Zodiac constellationPassedBySun(Moment moment)
Determines the zodiac constellation passed by the sun at given moment.
moment - the moment when any zodiac is passedpublic static Zodiac constellationPassedByMoon(Moment moment)
Determines the zodiac constellation passed by the moon at given moment.
moment - the moment when any zodiac is passedpublic static Zodiac signPassedBySun(Moment moment)
Determines the zodiac sign passed by the sun at given moment.
moment - the moment when any zodiac is passedpublic static Zodiac signPassedByMoon(Moment moment)
Determines the zodiac sign passed by the moon at given moment.
moment - the moment when any zodiac is passedpublic char getSymbol()
Obtains the associated symbol character.
public String getDisplayName(Locale locale)
Obtains a localized name.
locale - languagepublic Zodiac previous()
Obtains the zodiac which happens previous before this zodiac.
public Zodiac next()
Obtains the zodiac which happens next after this zodiac.
Copyright © 2014–2021. All rights reserved.