Interface DateAttribute

All Superinterfaces:
Attribute

public interface DateAttribute extends Attribute

This type represents an attribute whose value is a date.


Example to create an instance using the builder pattern

     DateAttribute dateAttribute = DateAttribute.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 DateAttribute of()
      factory method
      Returns:
      instance of DateAttribute
    • of

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

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

      static DateAttributeBuilder builder()
      builder factory method for DateAttribute
      Returns:
      builder
    • builder

      static DateAttributeBuilder builder(DateAttribute template)
      create builder for DateAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDateAttribute

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