Package Torello.Java

Enum Country

  • All Implemented Interfaces:, java.lang.Comparable<Country>

    public enum Country
    extends java.lang.Enum<Country>
    Country - Documentation.

    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.

    • Field Detail

      • countryName

        public final java.lang.String countryName
        This is the name of the country
        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())
        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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null