public static class SampleNode.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<SampleNode> implements org.apache.avro.data.RecordBuilder<SampleNode>
Modifier and Type | Method and Description |
---|---|
SampleNode |
build() |
SampleNode.Builder |
clearCount()
Clears the value of the 'count' field.
|
SampleNode.Builder |
clearSubNodes()
Clears the value of the 'subNodes' field.
|
Integer |
getCount()
Gets the value of the 'count' field.
|
SampleNode |
getSubNodes()
Gets the value of the 'subNodes' field.
|
SampleNode.Builder |
getSubNodesBuilder()
Gets the Builder instance for the 'subNodes' field and creates one if it doesn't exist yet.
|
boolean |
hasCount()
Checks whether the 'count' field has been set.
|
boolean |
hasSubNodes()
Checks whether the 'subNodes' field has been set.
|
boolean |
hasSubNodesBuilder()
Checks whether the 'subNodes' field has an active Builder instance
|
SampleNode.Builder |
setCount(int value)
Sets the value of the 'count' field.
|
SampleNode.Builder |
setSubNodes(SampleNode value)
Sets the value of the 'subNodes' field.
|
SampleNode.Builder |
setSubNodesBuilder(SampleNode.Builder value)
Sets the Builder instance for the 'subNodes' field
|
public Integer getCount()
public SampleNode.Builder setCount(int value)
value
- The value of 'count'.public boolean hasCount()
public SampleNode.Builder clearCount()
public SampleNode getSubNodes()
public SampleNode.Builder setSubNodes(SampleNode value)
value
- The value of 'subNodes'.public boolean hasSubNodes()
public SampleNode.Builder getSubNodesBuilder()
public SampleNode.Builder setSubNodesBuilder(SampleNode.Builder value)
value
- The builder instance that must be set.public boolean hasSubNodesBuilder()
public SampleNode.Builder clearSubNodes()
public SampleNode build()
build
in interface org.apache.avro.data.RecordBuilder<SampleNode>
Copyright © 2018 SPF4J. All rights reserved.