public class NxmOfArpOpBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<NxmOfArpOp>
NxmOfArpOpBuilder 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:
NxmOfArpOpBuilder createTarget(int fooXyzzy, int barBaz) {
return new NxmOfArpOpBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of NxmOfArpOpBuilder, 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 methodNxmOfArpOpBuilder,
Builder| Constructor and Description |
|---|
NxmOfArpOpBuilder() |
NxmOfArpOpBuilder(NxmOfArpOp base) |
| Modifier and Type | Method and Description |
|---|---|
NxmOfArpOpBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> |
augmentation(Class<E$$> augmentationType) |
NxmOfArpOp |
build() |
Integer |
getValue() |
NxmOfArpOpBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> augmentationType) |
NxmOfArpOpBuilder |
setValue(Integer value) |
public NxmOfArpOpBuilder()
public NxmOfArpOpBuilder(NxmOfArpOp base)
public Integer getValue()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> E$$ augmentation(Class<E$$> augmentationType)
public NxmOfArpOpBuilder setValue(Integer value)
public NxmOfArpOpBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp> augmentationValue)
public NxmOfArpOpBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<NxmOfArpOp>> augmentationType)
public NxmOfArpOp build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<NxmOfArpOp,IllegalArgumentException>Copyright © 2019 OpenDaylight. All rights reserved.