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