Interface StringSetField

All Superinterfaces:
CustomField

public interface StringSetField extends CustomField

A field with a string set value.


Example to create an instance using the builder pattern

     StringSetField stringSetField = StringSetField.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 StringSetField of()
      factory method
      Returns:
      instance of StringSetField
    • of

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

      @Nullable static StringSetField deepCopy(@Nullable StringSetField template)
      factory method to create a deep copy of StringSetField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static StringSetFieldBuilder builder()
      builder factory method for StringSetField
      Returns:
      builder
    • builder

      static StringSetFieldBuilder builder(StringSetField template)
      create builder for StringSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStringSetField

      default <T> T withStringSetField(Function<StringSetField,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<StringSetField> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference