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