Interface NumberSetField

All Superinterfaces:
CustomField

public interface NumberSetField extends CustomField

A field with a number value.


Example to create an instance using the builder pattern

     NumberSetField numberSetField = NumberSetField.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

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

      static NumberSetFieldBuilder builder()
      builder factory method for NumberSetField
      Returns:
      builder
    • builder

      static NumberSetFieldBuilder builder(NumberSetField template)
      create builder for NumberSetField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withNumberSetField

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