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