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