Package net.corda.data
Class KeyValuePair.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class KeyValuePair.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for KeyValuePair instances.
-
-
Method Summary
Modifier and Type Method Description String
getKey()
Gets the value of the 'key' field. KeyValuePair.Builder
setKey(String value)
Sets the value of the 'key' field. String
getValue()
Gets the value of the 'value' field. KeyValuePair.Builder
setValue(String value)
Sets the value of the 'value' field. boolean
hasKey()
Checks whether the 'key' field has been set. KeyValuePair.Builder
clearKey()
Clears the value of the 'key' field. boolean
hasValue()
Checks whether the 'value' field has been set. KeyValuePair.Builder
clearValue()
Clears the value of the 'value' field. KeyValuePair
build()
-
-
Method Detail
-
setKey
KeyValuePair.Builder setKey(String value)
Sets the value of the 'key' field.
- Parameters:
value
- The value of 'key'.
-
setValue
KeyValuePair.Builder setValue(String value)
Sets the value of the 'value' field.
- Parameters:
value
- The value of 'value'.
-
hasKey
boolean hasKey()
Checks whether the 'key' field has been set.
-
clearKey
KeyValuePair.Builder clearKey()
Clears the value of the 'key' field.
-
hasValue
boolean hasValue()
Checks whether the 'value' field has been set.
-
clearValue
KeyValuePair.Builder clearValue()
Clears the value of the 'value' field.
-
build
KeyValuePair build()
-
-
-
-