public class PathKeyBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<PathKey>
PathKeyBuilder 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:
PathKeyBuilder createTarget(int fooXyzzy, int barBaz) {
return new PathKeyBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of PathKeyBuilder, 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 methodPathKeyBuilder,
Builder| Constructor and Description |
|---|
PathKeyBuilder() |
PathKeyBuilder(CSubobject arg) |
PathKeyBuilder(PathKey base) |
PathKeyBuilder(PathKeySubobject arg) |
| Modifier and Type | Method and Description |
|---|---|
PathKeyBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<PathKey> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> |
augmentation(Class<E$$> augmentationType) |
PathKey |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
PathKey |
getPathKey() |
PceId |
getPceId() |
PathKeyBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> augmentationType) |
PathKeyBuilder |
setPathKey(PathKey value) |
PathKeyBuilder |
setPceId(PceId value) |
public PathKeyBuilder()
public PathKeyBuilder(PathKeySubobject arg)
public PathKeyBuilder(CSubobject arg)
public PathKeyBuilder(PathKey base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic PathKey getPathKey()
public PceId getPceId()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> E$$ augmentation(Class<E$$> augmentationType)
public PathKeyBuilder setPathKey(PathKey value)
public PathKeyBuilder setPceId(PceId value)
public PathKeyBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<PathKey> augmentationValue)
public PathKeyBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<PathKey>> augmentationType)
public PathKey build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<PathKey,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.