Class AppLanguages.Result

  • Enclosing class:
    AppLanguages

    public static class AppLanguages.Result
    extends java.lang.Object
    The result of the language code look-up.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String applicationLanguageCode
      The application-defined language code to use, never null.
      boolean isUnknownLanguage
      Flag indicating that the result is a default result as the application doesn't have language support set-up or does not provide a default language as fall-back.
      java.lang.String userLanguageCode
      The user language code to use if non-null.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks if two results equals.
      int hashCode()
      Hash code.
      java.lang.String toString()
      Returns a string representation of the result.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • applicationLanguageCode

        public final java.lang.String applicationLanguageCode
        The application-defined language code to use, never null.
      • userLanguageCode

        public final java.lang.String userLanguageCode
        The user language code to use if non-null.

        When this value is non-null, the user language code must be changed in order to match the application UI on the client side, i.e. date/time and other locale information must be changed to match this language code.

        If this variable is null, the user can keep it's locale settings as is.

      • isUnknownLanguage

        public final boolean isUnknownLanguage
        Flag indicating that the result is a default result as the application doesn't have language support set-up or does not provide a default language as fall-back.
    • Method Detail

      • equals

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

        public int hashCode()
        Hash code.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        Returns the hash code.
      • toString

        public java.lang.String toString()
        Returns a string representation of the result.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String such as "language code 'applicationLanguageCode' [, change user language to 'userLanguageCode'] [, unknown language code]".