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