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