Interface NumberField

All Superinterfaces:
CustomField

public interface NumberField extends CustomField

A field with a number value.


Example to create an instance using the builder pattern

     NumberField numberField = NumberField.builder()
             .value(0.3)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull Double getValue()
      Returns:
      value
    • setValue

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

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

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

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

      static NumberFieldBuilder builder()
      builder factory method for NumberField
      Returns:
      builder
    • builder

      static NumberFieldBuilder builder(NumberField template)
      create builder for NumberField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withNumberField

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