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