Interface TimeAttribute

All Superinterfaces:
Attribute

public interface TimeAttribute extends Attribute

This type represents an attribute whose value is a time.


Example to create an instance using the builder pattern

     TimeAttribute timeAttribute = TimeAttribute.builder()
             .value(LocalTime.parse("12:00:00.301"))
             .build()
 
  • Field Details

  • Method Details

    • getValue

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

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

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

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

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

      static TimeAttributeBuilder builder()
      builder factory method for TimeAttribute
      Returns:
      builder
    • builder

      static TimeAttributeBuilder builder(TimeAttribute template)
      create builder for TimeAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTimeAttribute

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