public class LinkDiscoveredBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<LinkDiscovered>
LinkDiscoveredBuilder
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:
LinkDiscoveredBuilder createTarget(int fooXyzzy, int barBaz) {
return new LinkDiscoveredBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of LinkDiscoveredBuilder, 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 methodLinkDiscoveredBuilder
,
Builder
Constructor and Description |
---|
LinkDiscoveredBuilder() |
LinkDiscoveredBuilder(Link arg) |
LinkDiscoveredBuilder(LinkDiscovered base) |
Modifier and Type | Method and Description |
---|---|
LinkDiscoveredBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> |
augmentation(Class<E$$> augmentationType) |
LinkDiscovered |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef |
getDestination() |
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef |
getSource() |
LinkDiscoveredBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> augmentationType) |
LinkDiscoveredBuilder |
setDestination(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value) |
LinkDiscoveredBuilder |
setSource(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value) |
public LinkDiscoveredBuilder()
public LinkDiscoveredBuilder(Link arg)
public LinkDiscoveredBuilder(LinkDiscovered base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getDestination()
public org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef getSource()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> E$$ augmentation(Class<E$$> augmentationType)
public LinkDiscoveredBuilder setDestination(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value)
public LinkDiscoveredBuilder setSource(org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeConnectorRef value)
public LinkDiscoveredBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered> augmentationValue)
public LinkDiscoveredBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<LinkDiscovered>> augmentationType)
public LinkDiscovered build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<LinkDiscovered,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.