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