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