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