public class BranchNodeCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<BranchNodeCase>
BranchNodeCaseBuilder 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:
BranchNodeCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new BranchNodeCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of BranchNodeCaseBuilder, 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 methodBranchNodeCaseBuilder,
Builder| Constructor and Description |
|---|
BranchNodeCaseBuilder() |
BranchNodeCaseBuilder(BranchNodeCase base) |
BranchNodeCaseBuilder(BranchNodeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
BranchNodeCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> |
augmentation(Class<E$$> augmentationType) |
BranchNodeCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
BranchNodeList |
getBranchNodeList() |
BranchNodeCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> augmentationType) |
BranchNodeCaseBuilder |
setBranchNodeList(BranchNodeList value) |
public BranchNodeCaseBuilder()
public BranchNodeCaseBuilder(BranchNodeObject arg)
public BranchNodeCaseBuilder(BranchNodeCase base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic BranchNodeList getBranchNodeList()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> E$$ augmentation(Class<E$$> augmentationType)
public BranchNodeCaseBuilder setBranchNodeList(BranchNodeList value)
public BranchNodeCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase> augmentationValue)
public BranchNodeCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<BranchNodeCase>> augmentationType)
public BranchNodeCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<BranchNodeCase,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.