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