public class NodeMeterFeaturesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NodeMeterFeatures>
NodeMeterFeaturesBuilder instances. Overall design of the class is that of a
fluent interface, where method chaining is used.
In general, this class is supposed to be used like this template:
NodeMeterFeaturesBuilder createTarget(int fooXyzzy, int barBaz) {
return new NodeMeterFeaturesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NodeMeterFeaturesBuilder, as instances can be freely passed around without worrying about synchronization issues.
As a side note: method chaining results in:
build(), which is then returned from the methodNodeMeterFeaturesBuilder,
Builder| Constructor and Description |
|---|
NodeMeterFeaturesBuilder() |
NodeMeterFeaturesBuilder(NodeMeterFeatures base) |
| Modifier and Type | Method and Description |
|---|---|
NodeMeterFeatures |
build() |
MeterFeatures |
getMeterFeatures() |
NodeMeterFeaturesBuilder |
setMeterFeatures(MeterFeatures value) |
public NodeMeterFeaturesBuilder()
public NodeMeterFeaturesBuilder(NodeMeterFeatures base)
public MeterFeatures getMeterFeatures()
public NodeMeterFeaturesBuilder setMeterFeatures(MeterFeatures value)
public NodeMeterFeatures build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NodeMeterFeatures,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.