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