public class FlowTestOutputBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<FlowTestOutput>
FlowTestOutputBuilder
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:
FlowTestOutputBuilder createTarget(int fooXyzzy, int barBaz) {
return new FlowTestOutputBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of FlowTestOutputBuilder, 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 methodFlowTestOutputBuilder
,
Builder
Constructor and Description |
---|
FlowTestOutputBuilder() |
FlowTestOutputBuilder(FlowTestOutput base) |
Modifier and Type | Method and Description |
---|---|
FlowTestOutputBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> |
augmentation(Class<E$$> augmentationType) |
FlowTestOutput |
build() |
FlowTestOutputBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> augmentationType) |
public FlowTestOutputBuilder()
public FlowTestOutputBuilder(FlowTestOutput base)
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> E$$ augmentation(Class<E$$> augmentationType)
public FlowTestOutputBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput> augmentationValue)
public FlowTestOutputBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<FlowTestOutput>> augmentationType)
public FlowTestOutput build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<FlowTestOutput,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.