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