Package org.opfab.avro
Class 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 Summary
Modifier and TypeMethodDescriptionbuild()clearEnd()Clears the value of the 'end' field.Clears the value of the 'start' field.getEnd()Gets the value of the 'end' field.getStart()Gets the value of the 'start' field.booleanhasEnd()Checks whether the 'end' field has been set.booleanhasStart()Checks whether the 'start' field has been set.Sets the value of the 'end' field.Sets the value of the 'start' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getStart
Gets the value of the 'start' field.- Returns:
- The value.
-
setStart
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
Clears the value of the 'start' field.- Returns:
- This builder.
-
getEnd
Gets the value of the 'end' field.- Returns:
- The value.
-
setEnd
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
Clears the value of the 'end' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<TimeSpan>
-