public enum County extends Enum<County> implements Serializable
Enum Constant and Description |
---|
blekinge |
dalarna |
gavleborg |
gotland |
halland |
jamtland |
jonkoping |
kalmar |
kronoberg |
norrbotten |
orebro |
ostergotland |
skane |
sodermanland |
stockholm |
uppsala |
varmland |
vasterbotten |
vasternorrland |
vastmanland |
vastra_gotaland |
Modifier and Type | Method and Description |
---|---|
static County |
getCountyById(int countyId)
Retrieves the County with the supplied ID.
|
int |
getCountyId() |
String |
getFormalName() |
String |
getLetterCode() |
String |
getName() |
static County |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static County[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final County stockholm
public static final County uppsala
public static final County sodermanland
public static final County ostergotland
public static final County jonkoping
public static final County kronoberg
public static final County kalmar
public static final County gotland
public static final County blekinge
public static final County skane
public static final County halland
public static final County vastra_gotaland
public static final County varmland
public static final County orebro
public static final County vastmanland
public static final County dalarna
public static final County gavleborg
public static final County vasternorrland
public static final County jamtland
public static final County vasterbotten
public static final County norrbotten
public static County[] values()
for (County c : County.values()) System.out.println(c);
public static County valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCountyId()
public String getName()
public String getLetterCode()
public String getFormalName()
Stockholms län
and equivalent).public static County getCountyById(int countyId)
countyId
- The id of the County to retrieve.IllegalArgumentException
- if no County had the supplied countyId.Copyright © 2005–2017 MojoHaus. All rights reserved.