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