com.darwinsys.geo.CanadaProvince Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
package com.darwinsys.geo;
/**
* Canadian provinces
*/
public enum CanadaProvince {
AB("Alberta"),
BC("British Columbia"),
MB("Manitoba"),
NB("New Brunswick"),
NL("Newfoundland & Labrador"),
NS("Nova Scotia"),
NV("Nunavut"),
NW("North West Territories"),
ON("Ontario"),
PE("Prince Edward Island"),
QC("Quebec"),
SK("Saskatchewan"),
YK("Yukon Territories"),
;
private final String longName;
private CanadaProvince(String longName) {
this.longName = longName;
}
public String getLongName() {
return longName;
}
@Override
public String toString () {
return this.getLongName();
}
}