Class Region

    • Constructor Detail

      • Region

        public Region()
        Constructs a new Region.
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Indicates whether some other object is "equal to" this one.
        Overrides:
        equals in class Object
        Parameters:
        object - the reference object with which to compare
        Returns:
        true if this object is the same as the object argument otherwise false
      • getCode

        public String getCode()
        Returns the ISO 3166-2 subdivision code for the region.
        Returns:
        the ISO 3166-2 subdivision code for the region
      • getCountry

        public String getCountry()
        Returns the ISO 3166-1 alpha-2 code for the country the region is associated with.
        Returns:
        the ISO 3166-1 alpha-2 code for the country the region is associated with
      • getDescription

        public String getDescription()
        Returns the description for the region.
        Returns:
        the description for the region
      • getLocaleId

        public String getLocaleId()
        Returns the Unicode locale identifier for the region.
        Returns:
        the Unicode locale identifier for the region
      • getName

        public String getName()
        Returns the name of the region.
        Returns:
        the name of the region
      • getSortIndex

        public Integer getSortIndex()
        Returns the sort index for the region.
        Returns:
        the sort index for the region
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for the object
      • setCode

        public void setCode​(String code)
        Set the ISO 3166-2 subdivision code for the region.
        Parameters:
        code - the ISO 3166-2 subdivision code for the region
      • setCountry

        public void setCountry​(String country)
        Set the ISO 3166-1 alpha-2 code for the country the region is associated with.
        Parameters:
        country - the ISO 3166-1 alpha-2 code for the country the region is associated with
      • setDescription

        public void setDescription​(String description)
        Set the description for the region.
        Parameters:
        description - the description for the region
      • setLocaleId

        public void setLocaleId​(String localeId)
        Set the Unicode locale identifier for the region.
        Parameters:
        localeId - the Unicode locale identifier for the region
      • setName

        public void setName​(String name)
        Set the name of the region.
        Parameters:
        name - the name of the region
      • setSortIndex

        public void setSortIndex​(Integer sortIndex)
        Set the sort index for the region.
        Parameters:
        sortIndex - the sort index for the region