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