Interface EnumSetField

All Superinterfaces:
CustomField

public interface EnumSetField extends CustomField

A field with an enum set value.


Example to create an instance using the builder pattern

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

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

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

      static EnumSetFieldBuilder builder()
      builder factory method for EnumSetField
      Returns:
      builder
    • builder

      static EnumSetFieldBuilder builder(EnumSetField template)
      create builder for EnumSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withEnumSetField

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