Enum Class Twilight

java.lang.Object
java.lang.Enum<Twilight>
org.deltava.util.Twilight
All Implemented Interfaces:
Serializable, Comparable<Twilight>, Constable

public enum Twilight extends Enum<Twilight>
An enumeration for storing twilight types.
Since:
7.3
Version:
7.4
Author:
Luke
  • Enum Constant Details

    • EXACT

      public static final Twilight EXACT
    • OFFICIAL

      public static final Twilight OFFICIAL
    • CIVIL

      public static final Twilight CIVIL
    • NAUTICAL

      public static final Twilight NAUTICAL
    • ASTRO

      public static final Twilight ASTRO
  • Method Details

    • values

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

      public static Twilight valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getDegrees

      public double getDegrees()
      The distance the Sun is below the vertical.
      Returns:
      the distance in degrees