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