Class LanguageOption.Language

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String key
      The language name.
      private java.util.Locale locale
      The corresponding Locale.
    • Constructor Summary

      Constructors 
      Constructor Description
      Language​(java.lang.String key, java.util.Locale locale)  
    • Field Detail

      • key

        private java.lang.String key
        The language name.
      • locale

        private java.util.Locale locale
        The corresponding Locale.
    • Constructor Detail

      • Language

        public Language​(java.lang.String key,
                        java.util.Locale locale)
    • Method Detail

      • getKey

        public final java.lang.String getKey()
        Get the key.
        Returns:
        The key.
      • setKey

        public final void setKey​(java.lang.String newKey)
        Set the key.
        Parameters:
        newKey - The new key.
      • getLocale

        public final java.util.Locale getLocale()
        Get the locale.
        Returns:
        The Locale.
      • setLocale

        public final void setLocale​(java.util.Locale newLocale)
        Set the locale.
        Parameters:
        newLocale - The new Locale.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object