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