All Superinterfaces:
CustomField

public interface DateField extends CustomField

A field with a date value.


Example to create an instance using the builder pattern

     DateField dateField = DateField.builder()
             .value(LocalDate.parse("2022-01-01"))
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

      static DateFieldBuilder builder()
      builder factory method for DateField
      Returns:
      builder
    • builder

      static DateFieldBuilder builder(DateField template)
      create builder for DateField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDateField

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