Enum Class RegionCode

java.lang.Object
java.lang.Enum<RegionCode>
org.orekit.files.rinex.navigation.RegionCode
All Implemented Interfaces:
Serializable, Comparable<RegionCode>, Constable

public enum RegionCode extends Enum<RegionCode>
Enumerate for region code.
Since:
12.0
Author:
Luc Maisonobe
See Also:
  • Enum Constant Details

    • WIDE_AREA

      public static final RegionCode WIDE_AREA
      Wide Area.
    • JAPAN

      public static final RegionCode JAPAN
      Japan area (for QZSS only).
  • Method Details

    • values

      public static RegionCode[] 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 RegionCode 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
    • getIntegerId

      public int getIntegerId()
      Get the integer identifier.
      Returns:
      integer identifier
      Since:
      14.0
    • getStringId

      public String getStringId()
      Get the string identifier.
      Returns:
      string identifier
      Since:
      14.0
    • parseRegionCode

      public static RegionCode parseRegionCode(int i)
      Parse the integer to get the region code.
      Parameters:
      i - integer to parse
      Returns:
      the region code corresponding to the string
      Throws:
      IllegalArgumentException - if the string does not correspond to a region code
      Since:
      14.0
    • parseRegionCode

      public static RegionCode parseRegionCode(String s)
      Parse the string to get the region code.
      Parameters:
      s - string to parse
      Returns:
      the region code corresponding to the string
      Throws:
      IllegalArgumentException - if the string does not correspond to a region code
      Since:
      14.0