Class Gs2AttributeValue


final class Gs2AttributeValue extends AbstractCharAttributeValue<Gs2Attributes>
Parse and write GS2 Attribute-Value pairs.
  • Constructor Details

    • Gs2AttributeValue

      Gs2AttributeValue(@NotNull @NotNull Gs2Attributes attribute, @Nullable @Nullable String value)
  • Method Details

    • parse

      @NotNull static @NotNull Gs2AttributeValue parse(@NotNull @NotNull String value)
      Parses a potential Gs2AttributeValue String.
      Parameters:
      value - The string that contains the Attribute-Value pair (where value is optional).
      Returns:
      The parsed class, or null if the String was null.
      Throws:
      IllegalArgumentException - If the String is an invalid Gs2AttributeValue