public class AvoidNodeBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<AvoidNode>
AvoidNodeBuilder 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:
AvoidNodeBuilder createTarget(int fooXyzzy, int barBaz) {
return new AvoidNodeBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of AvoidNodeBuilder, 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 methodAvoidNodeBuilder,
Builder| Constructor and Description |
|---|
AvoidNodeBuilder() |
AvoidNodeBuilder(AvoidNode base) |
| Modifier and Type | Method and Description |
|---|---|
AvoidNodeBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> |
augmentation(Class<E$$> augmentationType) |
AvoidNode |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone |
getAvoidNode() |
AvoidNodeBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> augmentationType) |
AvoidNodeBuilder |
setAvoidNode(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone value) |
public AvoidNodeBuilder()
public AvoidNodeBuilder(AvoidNode base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone getAvoidNode()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> E$$ augmentation(Class<E$$> augmentationType)
public AvoidNodeBuilder setAvoidNode(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6AddressNoZone value)
public AvoidNodeBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode> augmentationValue)
public AvoidNodeBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<AvoidNode>> augmentationType)
public AvoidNode build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<AvoidNode,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.