All Superinterfaces:
CustomField

public interface TimeField extends CustomField

A field with a time value.


Example to create an instance using the builder pattern

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

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

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

      static TimeFieldBuilder builder()
      builder factory method for TimeField
      Returns:
      builder
    • builder

      static TimeFieldBuilder builder(TimeField template)
      create builder for TimeField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTimeField

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