Package com.iizix.prop
Class AppLanguages.Data
java.lang.Object
com.iizix.prop.AppLanguages.Data
- Enclosing class:
AppLanguages
An internal AppLanguages map structure for fast look-up of a language.
Field Summary
Modifier and TypeFieldDescriptionThe list of errors encountered is an unmodifiable map.final Map<String,
AppLanguages.Result> The map of a language code to a language result.final Map<String,
AppLanguages.Result> The map of a wild cards to a language result.Method Summary
Modifier and TypeMethodDescriptionmapLanguage
(String languageCode) Maps a user language code to a Result.
Field Details
languageCodeMap
The map of a language code to a language result. The key is a language code and the value a 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
The list of errors encountered is an unmodifiable map.
Method Details
mapLanguage
Maps a user language code to a Result.- Parameters:
languageCode
- The language code.- Returns:
- The Result, never
null
.