public class DstOfEthSrcCaseBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<DstOfEthSrcCase>
DstOfEthSrcCaseBuilder 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:
DstOfEthSrcCaseBuilder createTarget(int fooXyzzy, int barBaz) {
return new DstOfEthSrcCaseBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of DstOfEthSrcCaseBuilder, 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 methodDstOfEthSrcCaseBuilder,
Builder| Constructor and Description |
|---|
DstOfEthSrcCaseBuilder() |
DstOfEthSrcCaseBuilder(DstOfEthSrcCase base) |
DstOfEthSrcCaseBuilder(NxmOfEthSrcGrouping arg) |
| Modifier and Type | Method and Description |
|---|---|
DstOfEthSrcCaseBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> |
augmentation(Class<E$$> augmentationType) |
DstOfEthSrcCase |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yangtools.yang.common.Empty |
getOfEthSrc() |
DstOfEthSrcCaseBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> augmentationType) |
DstOfEthSrcCaseBuilder |
setOfEthSrc(org.opendaylight.yangtools.yang.common.Empty value) |
public DstOfEthSrcCaseBuilder()
public DstOfEthSrcCaseBuilder(NxmOfEthSrcGrouping arg)
public DstOfEthSrcCaseBuilder(DstOfEthSrcCase base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic org.opendaylight.yangtools.yang.common.Empty getOfEthSrc()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> E$$ augmentation(Class<E$$> augmentationType)
public DstOfEthSrcCaseBuilder setOfEthSrc(org.opendaylight.yangtools.yang.common.Empty value)
public DstOfEthSrcCaseBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase> augmentationValue)
public DstOfEthSrcCaseBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<DstOfEthSrcCase>> augmentationType)
public DstOfEthSrcCase build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<DstOfEthSrcCase,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.