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