Class LangBearingString


  • public class LangBearingString
    extends Pair<String,​String>
    An object that represents a string associated with a language tag/locale.
    • Constructor Detail

      • LangBearingString

        public LangBearingString​(@Nullable
                                 String value)
        Constructor.
        Parameters:
        value - the value
      • LangBearingString

        public LangBearingString​(@Nullable
                                 String value,
                                 @Nullable @NotEmpty
                                 String lang)
        Constructor.
        Parameters:
        value - the value
        lang - the language
    • Method Detail

      • getValue

        @Nullable
        public String getValue()
        Get the string value.
        Returns:
        value
      • getLang

        @Nullable
        @NotEmpty
        public String getLang()
        Get the language.
        Returns:
        language
      • setSecond

        public void setSecond​(@Nullable
                              String newSecond)
        Sets the second object in the pair.
        Overrides:
        setSecond in class Pair<String,​String>
        Parameters:
        newSecond - second object in the pair