public class FlowStatisticsDataBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowStatisticsData>
FlowStatisticsDataBuilder
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:
FlowStatisticsDataBuilder createTarget(int fooXyzzy, int barBaz) {
return new FlowStatisticsDataBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of FlowStatisticsDataBuilder, 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 methodFlowStatisticsDataBuilder
,
Builder
Constructor and Description |
---|
FlowStatisticsDataBuilder() |
FlowStatisticsDataBuilder(FlowStatistics arg) |
FlowStatisticsDataBuilder(FlowStatisticsData base) |
Modifier and Type | Method and Description |
---|---|
FlowStatisticsData |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
FlowStatistics |
getFlowStatistics() |
FlowStatisticsDataBuilder |
setFlowStatistics(FlowStatistics value) |
public FlowStatisticsDataBuilder()
public FlowStatisticsDataBuilder(FlowStatistics arg)
public FlowStatisticsDataBuilder(FlowStatisticsData base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic FlowStatistics getFlowStatistics()
public FlowStatisticsDataBuilder setFlowStatistics(FlowStatistics value)
public FlowStatisticsData build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<FlowStatisticsData,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.