Enum County

    • Enum Constant Detail

      • stockholm

        public static final County stockholm
      • uppsala

        public static final County uppsala
      • sodermanland

        public static final County sodermanland
      • ostergotland

        public static final County ostergotland
      • jonkoping

        public static final County jonkoping
      • kronoberg

        public static final County kronoberg
      • kalmar

        public static final County kalmar
      • gotland

        public static final County gotland
      • blekinge

        public static final County blekinge
      • skane

        public static final County skane
      • halland

        public static final County halland
      • vastra_gotaland

        public static final County vastra_gotaland
      • varmland

        public static final County varmland
      • orebro

        public static final County orebro
      • vastmanland

        public static final County vastmanland
      • dalarna

        public static final County dalarna
      • gavleborg

        public static final County gavleborg
      • vasternorrland

        public static final County vasternorrland
      • jamtland

        public static final County jamtland
      • vasterbotten

        public static final County vasterbotten
      • norrbotten

        public static final County norrbotten
    • Method Detail

      • values

        public static County[] 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 (County c : County.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static County 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
      • getCountyId

        public int getCountyId()
        Returns:
        Retrieves the County ID.
      • getName

        public String getName()
        Returns:
        The name of this County.
      • getLetterCode

        public String getLetterCode()
        Returns:
        The letter code of this County.
      • getFormalName

        public String getFormalName()
        Returns:
        The formal name of the county, which is typical in listings. (I.e. Stockholms län and equivalent).
      • getCountyById

        public static County getCountyById​(int countyId)
        Retrieves the County with the supplied ID.
        Parameters:
        countyId - The id of the County to retrieve.
        Returns:
        The County with the supplied countyId.
        Throws:
        IllegalArgumentException - if no County had the supplied countyId.