public class TableFeaturePropertiesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TableFeatureProperties>
TableFeaturePropertiesBuilder
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:
TableFeaturePropertiesBuilder createTarget(int fooXyzzy, int barBaz) {
return new TableFeaturePropertiesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TableFeaturePropertiesBuilder, 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 methodTableFeaturePropertiesBuilder
,
Builder
Constructor and Description |
---|
TableFeaturePropertiesBuilder() |
TableFeaturePropertiesBuilder(Ordered arg) |
TableFeaturePropertiesBuilder(TableFeatureProperties base) |
TableFeaturePropertiesBuilder(TableFeaturePropType arg) |
Modifier and Type | Method and Description |
---|---|
TableFeaturePropertiesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> |
augmentation(Class<E$$> augmentationType) |
TableFeatureProperties |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Integer |
getOrder() |
TableFeaturePropType |
getTableFeaturePropType() |
TableFeaturePropertiesKey |
key() |
TableFeaturePropertiesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> augmentationType) |
TableFeaturePropertiesBuilder |
setOrder(Integer value) |
TableFeaturePropertiesBuilder |
setTableFeaturePropType(TableFeaturePropType value) |
TableFeaturePropertiesBuilder |
withKey(TableFeaturePropertiesKey key) |
public TableFeaturePropertiesBuilder()
public TableFeaturePropertiesBuilder(Ordered arg)
public TableFeaturePropertiesBuilder(TableFeaturePropType arg)
public TableFeaturePropertiesBuilder(TableFeatureProperties base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic TableFeaturePropertiesKey key()
public Integer getOrder()
public TableFeaturePropType getTableFeaturePropType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> E$$ augmentation(Class<E$$> augmentationType)
public TableFeaturePropertiesBuilder withKey(TableFeaturePropertiesKey key)
public TableFeaturePropertiesBuilder setOrder(Integer value)
public TableFeaturePropertiesBuilder setTableFeaturePropType(TableFeaturePropType value)
public TableFeaturePropertiesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties> augmentationValue)
public TableFeaturePropertiesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TableFeatureProperties>> augmentationType)
public TableFeatureProperties build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TableFeatureProperties,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.