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