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