Enum Region.RegionType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Region.RegionType>
    Enclosing class:
    Region

    public static enum Region.RegionType
    extends java.lang.Enum<Region.RegionType>
    RegionType is an enumeration defining the different types of regions. Current possible values are WORLD, CONTINENT, SUBCONTINENT, TERRITORY, GROUPING, DEPRECATED, and UNKNOWN.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CONTINENT
      Type representing a continent.
      DEPRECATED
      Type representing a region whose code has been deprecated, usually due to a country splitting into multiple territories or changing its name.
      GROUPING
      Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.
      SUBCONTINENT
      Type representing a sub-continent.
      TERRITORY
      Type representing a territory.
      UNKNOWN
      Type representing the unknown region.
      WORLD
      Type representing the whole world.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RegionType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Region.RegionType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Region.RegionType[] 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
    • Enum Constant Detail

      • UNKNOWN

        public static final Region.RegionType UNKNOWN
        Type representing the unknown region.
      • TERRITORY

        public static final Region.RegionType TERRITORY
        Type representing a territory.
      • WORLD

        public static final Region.RegionType WORLD
        Type representing the whole world.
      • CONTINENT

        public static final Region.RegionType CONTINENT
        Type representing a continent.
      • SUBCONTINENT

        public static final Region.RegionType SUBCONTINENT
        Type representing a sub-continent.
      • GROUPING

        public static final Region.RegionType GROUPING
        Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.
      • DEPRECATED

        public static final Region.RegionType DEPRECATED
        Type representing a region whose code has been deprecated, usually due to a country splitting into multiple territories or changing its name.
    • Constructor Detail

      • RegionType

        private RegionType()
    • Method Detail

      • values

        public static Region.RegionType[] 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 (Region.RegionType c : Region.RegionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Region.RegionType 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