Interface DateTimeSetAttribute

All Superinterfaces:
Attribute

public interface DateTimeSetAttribute extends Attribute

This type represents an attribute whose value is a set of dates with time.


Example to create an instance using the builder pattern

     DateTimeSetAttribute dateTimeSetAttribute = DateTimeSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull List<ZonedDateTime> getValue()

      A set of dates with time in the format YYYY-MM-DDTHH:mm:ss.SSSZ. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC.

      Returns:
      value
    • setValue

      void setValue(ZonedDateTime... value)

      A set of dates with time in the format YYYY-MM-DDTHH:mm:ss.SSSZ. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC.

      Parameters:
      value - values to be set
    • setValue

      void setValue(List<ZonedDateTime> value)

      A set of dates with time in the format YYYY-MM-DDTHH:mm:ss.SSSZ. The time zone is optional and defaults to UTC if not specified. If the time zone is specified, it must be in the format ±HH:mm or Z for UTC.

      Parameters:
      value - values to be set
    • of

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

      factory method to create a shallow copy DateTimeSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface Attribute
    • deepCopy

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

      static DateTimeSetAttributeBuilder builder()
      builder factory method for DateTimeSetAttribute
      Returns:
      builder
    • builder

      create builder for DateTimeSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDateTimeSetAttribute

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