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