Interface TimeSetAttribute

All Superinterfaces:
Attribute

public interface TimeSetAttribute extends Attribute

This type represents an attribute whose value is a set of times.


Example to create an instance using the builder pattern

     TimeSetAttribute timeSetAttribute = TimeSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull List<LocalTime> getValue()
      Returns:
      value
    • setValue

      void setValue(LocalTime... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<LocalTime> value)
      set value
      Parameters:
      value - values to be set
    • of

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

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

      factory method to create a deep copy of TimeSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static TimeSetAttributeBuilder builder()
      builder factory method for TimeSetAttribute
      Returns:
      builder
    • builder

      static TimeSetAttributeBuilder builder(TimeSetAttribute template)
      create builder for TimeSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTimeSetAttribute

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