Class AppLanguages.Data

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

public static class AppLanguages.Data extends Object
An internal AppLanguages map structure for fast look-up of a language.
  • Field Details

    • languageCodeMap

      public final Map<String,AppLanguages.Result> languageCodeMap
      The map of a language code to a language result. The key is a language code and the value a Result.
    • wildCardMap

      public final Map<String,AppLanguages.Result> wildCardMap
      The map of a wild cards to a language result. The key is a language code match with wildcards and the value a Result.
    • errors

      public final List<String> errors
      The list of errors encountered is an unmodifiable map.
  • Method Details

    • mapLanguage

      public AppLanguages.Result mapLanguage(String languageCode)
      Maps a user language code to a Result.
      Parameters:
      languageCode - The language code.
      Returns:
      The Result, never null.