Class AppLanguages.Result

java.lang.Object
com.iizix.prop.AppLanguages.Result
Enclosing class:
AppLanguages

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

    • applicationLanguageCode

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

      public final 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 Details

    • equals

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

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

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