public class NoPathVectorBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NoPathVector>
NoPathVectorBuilder 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:
NoPathVectorBuilder createTarget(int fooXyzzy, int barBaz) {
return new NoPathVectorBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NoPathVectorBuilder, 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 methodNoPathVectorBuilder,
Builder| Constructor and Description |
|---|
NoPathVectorBuilder() |
NoPathVectorBuilder(NoPathVector base) |
NoPathVectorBuilder(NoPathVectorTlv arg) |
NoPathVectorBuilder(Tlv arg) |
| Modifier and Type | Method and Description |
|---|---|
NoPathVectorBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> |
augmentation(Class<E$$> augmentationType) |
NoPathVector |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
NoPathVectorTlv.Flags |
getFlags() |
NoPathVectorBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> augmentationType) |
NoPathVectorBuilder |
setFlags(NoPathVectorTlv.Flags value) |
public NoPathVectorBuilder()
public NoPathVectorBuilder(NoPathVectorTlv arg)
public NoPathVectorBuilder(Tlv arg)
public NoPathVectorBuilder(NoPathVector base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic NoPathVectorTlv.Flags getFlags()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> E$$ augmentation(Class<E$$> augmentationType)
public NoPathVectorBuilder setFlags(NoPathVectorTlv.Flags value)
public NoPathVectorBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector> augmentationValue)
public NoPathVectorBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NoPathVector>> augmentationType)
public NoPathVector build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NoPathVector,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.