Package Torello.Java

Enum 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 the public, final String 'Country.countryName'. These enumerated-token as-a-String may always be referenced through the standard java toString() method.


    • Enum Constant Summary

      Enum Constants 
      Enum Constant
      Akrotiri
      Albania
      Algeria
      AmericanSamoa
      Andorra
      Angola
      Anguilla
      Antarctica
      AntiguaAndBarbuda
      Argentina
      Armenia
      Aruba
      AshmoreAndCartierIslands
      Australia
      Austria
      Azerbaijan
      Bahamas
      Bahrain
      Bangladesh
      Barbados
      BassasDaIndia
      Belarus
      Belgium
      Belize
      Benin
      Bermuda
      Bhutan
      Bolivia
      BosniaHerzegovina
      Botswana
      BouvetIsland
      Brazil
      BritishIndianOceanTerritory
      BritishVirginIslands
      Brunei
      Bulgaria
      BurkinaFaso
      Burma
      Burundi
      Cambodia
      Cameroon
      Canada
      CapeVerde
      CaymanIslands
      CentralAfricanRepublic
      Chad
      Chile
      China
      ChristmasIsland
      ClippertonIsland
      Cocos
      Colombia
      Comoros
      Congo
      CookIslands
      CoralSeaIslands
      CostaRica
      Croatia
      Cuba
      Cyprus
      CzechRepublic
      Denmark
      Dhekelia
      Djibouti
      Dominica
      DominicanRepublic
      Ecuador
      Egypt
      ElSalvador
      EquatorialGuinea
      Eritrea
      Estonia
      Ethiopia
      EuropaIsland
      FalklandIslands
      FaroeIslands
      Fiji
      Finland
      France
      FrenchGuiana
      FrenchPolynesia
      FrenchSouthernAndAntarcticLands
      Gabon
      Gambia
      GazaStrip
      Georgia
      Germany
      Ghana
      Gibraltar
      GloriosoIslands
      Greece
      Greenland
      Grenada
      Guadeloupe
      Guam
      Guatemala
      Guernsey
      Guinea
      GuineaBissau
      Guyana
      Haiti
      HeardIslandAndMcDonaldIslands
      HolySee
      Honduras
      HongKong
      Hungary
      Iceland
      India
      Indonesia
      Iran
      Iraq
      Ireland
      IsleOfMan
      Israel
      Italy
      IvoryCoast
      Jamaica
      JanMayen
      Japan
      Jersey
      Jordan
      JuanDeNovaIsland
      Kazakhstan
      Kenya
      Kiribati
      Korea
      Kuwait
      Kyrgyzstan
      Laos
      Latvia
      Lebanon
      Lesotho
      Liberia
      Libya
      Liechtenstein
      Lithuania
      Luxembourg
      Macau
      Macedonia
      Madagascar
      Malawi
      Malaysia
      Maldives
      Mali
      Malta
      MarshallIslands
      Martinique
      Mauritania
      Mauritius
      Mayotte
      Mexico
      Micronesia
      Moldova
      Monaco
      Mongolia
      Montserrat
      Morocco
      Mozambique
      Namibia
      Nauru
      NavassaIsland
      Nepal
      Netherlands
      NetherlandsAntilles
      NewCaledonia
      NewZealand
      Nicaragua
      Niger
      Nigeria
      Niue
      NorfolkIsland
      NorthernMarianaIslands
      NorthKorea
      Norway
      Oman
      Pakistan
      Palau
      Panama
      PapuaNewGuinea
      ParacelIslands
      Paraguay
      Peru
      Philippines
      PitcairnIslands
      Poland
      Portugal
      PuertoRico
      Qatar
      Reunion
      Romania
      Russia
      Rwanda
      SaintHelena
      SaintKittsAndNevis
      SaintLucia
      SaintPierreAndMiquelon
      SaintVincentAndtheGrenadines
      Samoa
      SanMarino
      SaoTomeAndPrincipe
      SaudiArabia
      Senegal
      SerbiaAndMontenegro
      Seychelles
      SierraLeone
      Singapore
      Slovakia
      Slovenia
      SolomonIslands
      Somalia
      SouthAfrica
      SoutKorea
      Spain
      SpratlyIslands
      SriLanka
      Sudan
      Suriname
      Svalbard
      Swaziland
      Sweden
      Switzerland
      Syria
      Taiwan
      Tajikistan
      Tanzania
      Thailand
      TimorLeste
      Togo
      Tokelau
      Tonga
      TrinidadAndTobago
      TromelinIsland
      Tunisia
      Turkey
      Turkmenistan
      TurksAndCaicosIslands
      Tuvalu
      Uganda
      Ukraine
      UnitedArabEmirates
      UnitedKingdom
      UnitedStates
      Uruguay
      Uzbekistan
      Vanuatu
      Venezuela
      Vietnam
      VirginIslands
      WakeIsland
      WallisAndFutuna
      WestBank
      WesternSahara
      Yemen
      Zambia
      Zimbabwe
    • Field Summary

      Fields 
      Modifier and Type Field
      String countryName
    • Method Summary

       
      Convert String to Enum Constant
      Modifier and Type Method
      static Country valueOf​(String name)
       
      List all Enum Constants
      Modifier and Type Method
      static Country[] values()
      • 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
    • 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 name
        java.lang.NullPointerException - if the argument is null