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