Interface BooleanSetField

All Superinterfaces:
CustomField

public interface BooleanSetField extends CustomField

A field with a boolean set value.


Example to create an instance using the builder pattern

     BooleanSetField booleanSetField = BooleanSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

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

      static BooleanSetFieldBuilder builder()
      builder factory method for BooleanSetField
      Returns:
      builder
    • builder

      static BooleanSetFieldBuilder builder(BooleanSetField template)
      create builder for BooleanSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBooleanSetField

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