Class LanguageToContentPair


  • public class LanguageToContentPair
    extends Object
    Container class for language to content pair. Contains language as string an content as string.
    • Constructor Detail

      • LanguageToContentPair

        public LanguageToContentPair()
        Constructor.
      • LanguageToContentPair

        public LanguageToContentPair​(String language,
                                     String content)
        Constructor.
        Parameters:
        language - - language. Can't be null.
        content - - content. Can't be null.
    • Method Detail

      • getLanguage

        public String getLanguage()
        Returns language. Can't return null.
        Returns:
        language
      • getContent

        public String getContent()
        Returns content.
        Returns:
        content. Can't return null.
      • setLanguage

        public void setLanguage​(String language)
        Sets language.
        Parameters:
        language - - language to set. Can't be null.
      • setContent

        public void setContent​(String content)
        Sets content.
        Parameters:
        content - content to set. Can't be null.