Interface Locale.Builder

    • Method Detail

      • country

        Locale.Builder country​(String country)

        The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

        Parameters:
        country - The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subdivision

        Locale.Builder subdivision​(String subdivision)

        The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

        Parameters:
        subdivision - The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.
        Returns:
        Returns a reference to this object so that method calls can be chained together.