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