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