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