org.yestech.lib.i18n
Enum CanadaProvinceEnum
java.lang.Object
java.lang.Enum<CanadaProvinceEnum>
org.yestech.lib.i18n.CanadaProvinceEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CanadaProvinceEnum>
public enum CanadaProvinceEnum
- extends java.lang.Enum<CanadaProvinceEnum>
The list of all Canadian provinces.
|
Method Summary |
java.lang.String |
getCode()
|
static CanadaProvinceEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CanadaProvinceEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ALBERTA
public static final CanadaProvinceEnum ALBERTA
BRITISH_COLUMBIA
public static final CanadaProvinceEnum BRITISH_COLUMBIA
MANITOBA
public static final CanadaProvinceEnum MANITOBA
NEW_BRUNSWICK
public static final CanadaProvinceEnum NEW_BRUNSWICK
NEW_FOUNDLAND_AND_LABRADOR
public static final CanadaProvinceEnum NEW_FOUNDLAND_AND_LABRADOR
NORTHWEST_TERRITORIES
public static final CanadaProvinceEnum NORTHWEST_TERRITORIES
NOVA_SCOTIA
public static final CanadaProvinceEnum NOVA_SCOTIA
NUNAVUT
public static final CanadaProvinceEnum NUNAVUT
ONTARIO
public static final CanadaProvinceEnum ONTARIO
PRINCE_EDWARD_ISLAND
public static final CanadaProvinceEnum PRINCE_EDWARD_ISLAND
QUEBEC
public static final CanadaProvinceEnum QUEBEC
SASKATCHEWAN
public static final CanadaProvinceEnum SASKATCHEWAN
YUKON
public static final CanadaProvinceEnum YUKON
values
public static CanadaProvinceEnum[] 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 (CanadaProvinceEnum c : CanadaProvinceEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CanadaProvinceEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getCode
public java.lang.String getCode()
Copyright © 2009 YES Technology Association. All Rights Reserved.