Class JavaLocale

    • Constructor Detail

      • JavaLocale

        protected JavaLocale​(String value)
        Instantiates a new java locale.
        Parameters:
        value - the value
      • JavaLocale

        public JavaLocale​(String language,
                          String country)
        Instantiates a new java locale.
        Parameters:
        language - the language
        country - the country
    • Method Detail

      • getLanguage

        public String getLanguage()
        Gets language.
        Returns:
        the language
      • setLanguage

        public void setLanguage​(String language)
        Sets language.
        Parameters:
        language - the language
      • getCountry

        public String getCountry()
        Gets country.
        Returns:
        the country
      • setCountry

        public void setCountry​(String country)
        Sets country.
        Parameters:
        country - the country
      • toString

        public String toString​(JavaLocale.Separator separator)
        To string with separator.
        Parameters:
        separator - the separator
        Returns:
        the locale string
      • toLocale

        public Locale toLocale()
        To locale.
        Returns:
        the locale
      • toLocale

        public Locale toLocale​(Locale defaultLocale)
        To locale.
        Parameters:
        defaultLocale - the default locale
        Returns:
        the locale
      • fromValue

        public static JavaLocale fromValue​(String value)
        From value.
        Parameters:
        value - the value
        Returns:
        the java locale
      • fromLocale

        public static JavaLocale fromLocale​(Locale locale)
        From locale.
        Parameters:
        locale - the locale
        Returns:
        the java locale