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