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