Class LangBearingString

java.lang.Object
net.shibboleth.utilities.java.support.collection.Pair<String,​String>
net.shibboleth.utilities.java.support.primitive.LangBearingString

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

    • 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 Details

    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Pair<String,​String>