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