Package org.opfab.avro
Class I18n.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<I18n>
- Enclosing class:
I18n
public static class I18n.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<I18n>
implements org.apache.avro.data.RecordBuilder<I18n>
RecordBuilder for I18n instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()clearKey()Clears the value of the 'key' field.Clears the value of the 'parameters' field.getKey()Gets the value of the 'key' field.Gets the value of the 'parameters' field.booleanhasKey()Checks whether the 'key' field has been set.booleanChecks whether the 'parameters' field has been set.Sets the value of the 'key' field.setParameters(Map<String, String> value) Sets the value of the 'parameters' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getKey
Gets the value of the 'key' field.- Returns:
- The value.
-
setKey
Sets the value of the 'key' field.- Parameters:
value- The value of 'key'.- Returns:
- This builder.
-
hasKey
public boolean hasKey()Checks whether the 'key' field has been set.- Returns:
- True if the 'key' field has been set, false otherwise.
-
clearKey
Clears the value of the 'key' field.- Returns:
- This builder.
-
getParameters
Gets the value of the 'parameters' field.- Returns:
- The value.
-
setParameters
Sets the value of the 'parameters' field.- Parameters:
value- The value of 'parameters'.- Returns:
- This builder.
-
hasParameters
public boolean hasParameters()Checks whether the 'parameters' field has been set.- Returns:
- True if the 'parameters' field has been set, false otherwise.
-
clearParameters
Clears the value of the 'parameters' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<I18n>
-