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