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