Interface DateTimeField

All Superinterfaces:
CustomField

public interface DateTimeField extends CustomField

A field with a date time value.


Example to create an instance using the builder pattern

     DateTimeField dateTimeField = DateTimeField.builder()
             .value(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

      static DateTimeFieldBuilder builder()
      builder factory method for DateTimeField
      Returns:
      builder
    • builder

      static DateTimeFieldBuilder builder(DateTimeField template)
      create builder for DateTimeField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDateTimeField

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