Enum Class DegreeFormat

java.lang.Object
java.lang.Enum<DegreeFormat>
slash.navigation.common.DegreeFormat
All Implemented Interfaces:
Serializable, Comparable<DegreeFormat>, Constable

public enum DegreeFormat extends Enum<DegreeFormat>
Enumeration of supported degree formats.
Author:
Christian Pesch
  • Enum Constant Details

    • Degrees

      public static final DegreeFormat Degrees
    • Degrees_Minutes

      public static final DegreeFormat Degrees_Minutes
    • Degrees_Minutes_Seconds

      public static final DegreeFormat Degrees_Minutes_Seconds
  • Method Details

    • values

      public static DegreeFormat[] 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 DegreeFormat 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
    • longitudeToDegrees

      public String longitudeToDegrees(Double longitude)
    • latitudeToDegrees

      public String latitudeToDegrees(Double latitude)
    • parseLongitude

      public Double parseLongitude(String string)
    • parseLatitude

      public Double parseLatitude(String string)
    • getDegreeFormatsWithPreferredDegreeFormat

      public static List<DegreeFormat> getDegreeFormatsWithPreferredDegreeFormat(DegreeFormat preferredDegreeFormat)