Class AppLanguages.Data

  • Enclosing class:
    AppLanguages

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

      Fields 
      Modifier and TypeFieldDescription
      java.util.List<java.lang.String>errors
      The list of errors encountered is an unmodifiable map.
      java.util.Map<java.lang.String,​AppLanguages.Result>languageCodeMap
      The map of a language code to a language result.
      java.util.Map<java.lang.String,​AppLanguages.Result>wildCardMap
      The map of a wild cards to a language result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      AppLanguages.ResultmapLanguage​(java.lang.String languageCode)
      Maps a user language code to a Result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • languageCodeMap

        public final java.util.Map<java.lang.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 java.util.Map<java.lang.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 java.util.List<java.lang.String> errors
        The list of errors encountered is an unmodifiable map.
    • Method Detail

      • mapLanguage

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