Package Torello.Java
Enum Country
- java.lang.Object
-
- java.lang.Enum<Country>
-
- Torello.Java.Country
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Country>
public enum Country extends java.lang.Enum<Country>
An enumeration of countries in the world.
This class is intended to allow users to specify a country from one of the named and listed countries in this enumerated type. Given that leadership in the world doesn't always agree on ideas, this list is not really intended to be all inclusive, but rather was just the choice of the day. Most of the commonly heard "Country Words" (from around here: Dallas, Texas) are, indeed, listed.
If a 'full name' is available for a particular country, or alleged country, that full-name may be retrieved by referencing thepublic, final String 'Country.countryName'. These enumerated-token as-a-Stringmay always be referenced through the standard javatoString()method.
Hi-Lited Source-Code:- View Here: Torello/Java/Country.java
- Open New Browser-Tab: Torello/Java/Country.java
File Size: 25,367 Bytes Line Count: 782 '\n' Characters Found
-
-
Enum Constant Summary
Enum Constants Enum Constant AkrotiriAlbaniaAlgeriaAmericanSamoaAndorraAngolaAnguillaAntarcticaAntiguaAndBarbudaArgentinaArmeniaArubaAshmoreAndCartierIslandsAustraliaAustriaAzerbaijanBahamasBahrainBangladeshBarbadosBassasDaIndiaBelarusBelgiumBelizeBeninBermudaBhutanBoliviaBosniaHerzegovinaBotswanaBouvetIslandBrazilBritishIndianOceanTerritoryBritishVirginIslandsBruneiBulgariaBurkinaFasoBurmaBurundiCambodiaCameroonCanadaCapeVerdeCaymanIslandsCentralAfricanRepublicChadChileChinaChristmasIslandClippertonIslandCocosColombiaComorosCongoCookIslandsCoralSeaIslandsCostaRicaCroatiaCubaCyprusCzechRepublicDenmarkDhekeliaDjiboutiDominicaDominicanRepublicEcuadorEgyptElSalvadorEquatorialGuineaEritreaEstoniaEthiopiaEuropaIslandFalklandIslandsFaroeIslandsFijiFinlandFranceFrenchGuianaFrenchPolynesiaFrenchSouthernAndAntarcticLandsGabonGambiaGazaStripGeorgiaGermanyGhanaGibraltarGloriosoIslandsGreeceGreenlandGrenadaGuadeloupeGuamGuatemalaGuernseyGuineaGuineaBissauGuyanaHaitiHeardIslandAndMcDonaldIslandsHolySeeHondurasHongKongHungaryIcelandIndiaIndonesiaIranIraqIrelandIsleOfManIsraelItalyIvoryCoastJamaicaJanMayenJapanJerseyJordanJuanDeNovaIslandKazakhstanKenyaKiribatiKoreaKuwaitKyrgyzstanLaosLatviaLebanonLesothoLiberiaLibyaLiechtensteinLithuaniaLuxembourgMacauMacedoniaMadagascarMalawiMalaysiaMaldivesMaliMaltaMarshallIslandsMartiniqueMauritaniaMauritiusMayotteMexicoMicronesiaMoldovaMonacoMongoliaMontserratMoroccoMozambiqueNamibiaNauruNavassaIslandNepalNetherlandsNetherlandsAntillesNewCaledoniaNewZealandNicaraguaNigerNigeriaNiueNorfolkIslandNorthernMarianaIslandsNorthKoreaNorwayOmanPakistanPalauPanamaPapuaNewGuineaParacelIslandsParaguayPeruPhilippinesPitcairnIslandsPolandPortugalPuertoRicoQatarReunionRomaniaRussiaRwandaSaintHelenaSaintKittsAndNevisSaintLuciaSaintPierreAndMiquelonSaintVincentAndtheGrenadinesSamoaSanMarinoSaoTomeAndPrincipeSaudiArabiaSenegalSerbiaAndMontenegroSeychellesSierraLeoneSingaporeSlovakiaSloveniaSolomonIslandsSomaliaSouthAfricaSoutKoreaSpainSpratlyIslandsSriLankaSudanSurinameSvalbardSwazilandSwedenSwitzerlandSyriaTaiwanTajikistanTanzaniaThailandTimorLesteTogoTokelauTongaTrinidadAndTobagoTromelinIslandTunisiaTurkeyTurkmenistanTurksAndCaicosIslandsTuvaluUgandaUkraineUnitedArabEmiratesUnitedKingdomUnitedStatesUruguayUzbekistanVanuatuVenezuelaVietnamVirginIslandsWakeIslandWallisAndFutunaWestBankWesternSaharaYemenZambiaZimbabwe
-
Field Summary
Fields Modifier and Type Field StringcountryName
-
Method Summary
Convert String to Enum Constant Modifier and Type Method static CountryvalueOf(String name)List all Enum Constants Modifier and Type Method static Country[]values()
-
-
-
Field Detail
-
countryName
public final java.lang.String countryName
This is the name of the country- Code:
- Exact Field Declaration Expression:
public final String countryName;
-
-
Method Detail
-
values
public static Country[] 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 (Country c : Country.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Country 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 namejava.lang.NullPointerException- if the argument is null
-
-