public class UdpSrcCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<UdpSrcCase>
UdpSrcCaseBuilder
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:
UdpSrcCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new UdpSrcCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of UdpSrcCaseBuilder, 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 methodUdpSrcCaseBuilder
,
Builder
Constructor and Description |
---|
UdpSrcCaseBuilder() |
UdpSrcCaseBuilder(UdpSrcCase base) |
Modifier and Type | Method and Description |
---|---|
UdpSrcCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> |
augmentation(Class<E$$> augmentationType) |
UdpSrcCase |
build() |
UdpSrc |
getUdpSrc() |
UdpSrcCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> augmentationType) |
UdpSrcCaseBuilder |
setUdpSrc(UdpSrc value) |
public UdpSrcCaseBuilder()
public UdpSrcCaseBuilder(UdpSrcCase base)
public UdpSrc getUdpSrc()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> E$$ augmentation(Class<E$$> augmentationType)
public UdpSrcCaseBuilder setUdpSrc(UdpSrc value)
public UdpSrcCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase> augmentationValue)
public UdpSrcCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<UdpSrcCase>> augmentationType)
public UdpSrcCase build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<UdpSrcCase,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.