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