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