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