Class TimeSpan.Builder

java.lang.Object
org.apache.avro.data.RecordBuilderBase<TimeSpan>
org.apache.avro.specific.SpecificRecordBuilderBase<TimeSpan>
org.opfab.avro.TimeSpan.Builder
All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<TimeSpan>
Enclosing class:
TimeSpan

public static class TimeSpan.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<TimeSpan> implements org.apache.avro.data.RecordBuilder<TimeSpan>
RecordBuilder for TimeSpan instances.
  • Method Details

    • getStart

      public Instant getStart()
      Gets the value of the 'start' field.
      Returns:
      The value.
    • setStart

      public TimeSpan.Builder setStart(Instant value)
      Sets the value of the 'start' field.
      Parameters:
      value - The value of 'start'.
      Returns:
      This builder.
    • hasStart

      public boolean hasStart()
      Checks whether the 'start' field has been set.
      Returns:
      True if the 'start' field has been set, false otherwise.
    • clearStart

      public TimeSpan.Builder clearStart()
      Clears the value of the 'start' field.
      Returns:
      This builder.
    • getEnd

      public Instant getEnd()
      Gets the value of the 'end' field.
      Returns:
      The value.
    • setEnd

      public TimeSpan.Builder setEnd(Instant value)
      Sets the value of the 'end' field.
      Parameters:
      value - The value of 'end'.
      Returns:
      This builder.
    • hasEnd

      public boolean hasEnd()
      Checks whether the 'end' field has been set.
      Returns:
      True if the 'end' field has been set, false otherwise.
    • clearEnd

      public TimeSpan.Builder clearEnd()
      Clears the value of the 'end' field.
      Returns:
      This builder.
    • build

      public TimeSpan build()
      Specified by:
      build in interface org.apache.avro.data.RecordBuilder<TimeSpan>