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