java.lang.Object
java.lang.Enum<MoonPhase>
com.timeanddate.services.dataTypes.astro.MoonPhase
All Implemented Interfaces:
Serializable, Comparable<MoonPhase>

public enum MoonPhase extends Enum<MoonPhase>
Author:
Cato Auestad <cato@timeanddate.com>
  • Enum Constant Details

    • NOTREQUESTED

      public static final MoonPhase NOTREQUESTED
    • NEWMOON

      public static final MoonPhase NEWMOON
    • WAXINGCRESCENT

      public static final MoonPhase WAXINGCRESCENT
    • FIRSTQUARTER

      public static final MoonPhase FIRSTQUARTER
    • WAXINGGIBBOUS

      public static final MoonPhase WAXINGGIBBOUS
    • FULLMOON

      public static final MoonPhase FULLMOON
    • WANINGGIBBOUS

      public static final MoonPhase WANINGGIBBOUS
    • THIRDQUARTER

      public static final MoonPhase THIRDQUARTER
    • WANINGCESCENT

      public static final MoonPhase WANINGCESCENT
  • Method Details

    • values

      public static MoonPhase[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MoonPhase valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null