Enum Municipality

  • All Implemented Interfaces:
    Serializable, Comparable<Municipality>

    public enum Municipality
    extends Enum<Municipality>
    implements Serializable

    Enumeration of Swedish Municipalities. The enumeration name of each municipality is synthesized from the lower-case name of the municipality by replacing each scandinavian character with the corresponding ASCII character and replacing whitespace and punctuation with underscore. For example, this implies that "Järfälla" municipality has the enum constant "jarfalla", and that "Östra Göinge" has the enum constant "ostra_goinge".

    A special case exists for the two municipalities "Håbo" in Uppsala county and "Habo" in Jönköping county. Since the enum constant for both these municipalities would be "habo", the county name is appended yielding the two constants habo_uppsala and habo_jonkoping.

    Author:
    Lennart Jörelid, jGuru Europe AB