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