Interface TextSetAttribute

All Superinterfaces:
Attribute

public interface TextSetAttribute extends Attribute

This type represents an attribute whose value is a set of strings.


Example to create an instance using the builder pattern

     TextSetAttribute textSetAttribute = TextSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull List<String> getValue()
      Returns:
      value
    • setValue

      void setValue(String... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<String> value)
      set value
      Parameters:
      value - values to be set
    • of

      static TextSetAttribute of()
      factory method
      Returns:
      instance of TextSetAttribute
    • of

      static TextSetAttribute of(TextSetAttribute template)
      factory method to create a shallow copy TextSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of TextSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static TextSetAttributeBuilder builder()
      builder factory method for TextSetAttribute
      Returns:
      builder
    • builder

      static TextSetAttributeBuilder builder(TextSetAttribute template)
      create builder for TextSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTextSetAttribute

      default <T> T withTextSetAttribute(Function<TextSetAttribute,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<TextSetAttribute> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference