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