Enum RegionCode

    • Enum Constant Detail

      • WIDE_AREA

        public static final RegionCode WIDE_AREA
        Wide Area.
      • JAPAN

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

      • values

        public static RegionCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RegionCode c : RegionCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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