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