Class LangMap

    • Constructor Detail

      • LangMap

        public LangMap​(HashMap<String,​String> input)
        Create a new langmap from a HashMap
        Parameters:
        input - a HashMap of RFC5646 Language Tags, and corresponding value strings
    • Method Detail

      • put

        public void put​(String languageCode,
                        String value)
        Sets an entry in the Language Map
        Parameters:
        languageCode - the RFC 5646 Language Tag of the specified Language
        value - a string in the language specified by languageCode
      • get

        public String get​(String languageCode)
        Retrieve the value for a specific language.
        Parameters:
        languageCode - RFC 5646 Language Tag
        Returns:
        The value in the language specified by the tag.
      • remove

        public void remove​(String languageCode)
        Remove an Entry from the Language Map
        Parameters:
        languageCode - RFC 5646 Language Tag
      • getLanguageCodes

        public Set<String> getLanguageCodes()
        Retrieves the full set of RFC 5646 Language Tags contained in the Map
        Returns:
        A set RFC 5646 Language Tag Strings
      • getMap

        public Map<String,​String> getMap()
        Retrieves the full Language Map in the form of a HashMap<String, String>
        Returns:
        The full Language Map