public class MetricObjectBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MetricObject>
MetricObjectBuilder 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:
MetricObjectBuilder createTarget(int fooXyzzy, int barBaz) {
return new MetricObjectBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MetricObjectBuilder, 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 methodMetricObjectBuilder,
Builder| Constructor and Description |
|---|
MetricObjectBuilder() |
MetricObjectBuilder(MetricObject base) |
MetricObjectBuilder(RsvpTeObject arg) |
| Modifier and Type | Method and Description |
|---|---|
MetricObjectBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> |
augmentation(Class<E$$> augmentationType) |
MetricObject |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
Short |
getMetricType() |
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 |
getValue() |
Boolean |
isBound() |
Boolean |
isComputed() |
MetricObjectBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> augmentationType) |
MetricObjectBuilder |
setBound(Boolean value) |
MetricObjectBuilder |
setComputed(Boolean value) |
MetricObjectBuilder |
setMetricType(Short value) |
MetricObjectBuilder |
setValue(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 value) |
public MetricObjectBuilder()
public MetricObjectBuilder(RsvpTeObject arg)
public MetricObjectBuilder(MetricObject base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic Short getMetricType()
public org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 getValue()
public Boolean isBound()
public Boolean isComputed()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> E$$ augmentation(Class<E$$> augmentationType)
public MetricObjectBuilder setMetricType(Short value)
public MetricObjectBuilder setValue(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ieee754.rev130819.Float32 value)
public MetricObjectBuilder setBound(Boolean value)
public MetricObjectBuilder setComputed(Boolean value)
public MetricObjectBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject> augmentationValue)
public MetricObjectBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MetricObject>> augmentationType)
public MetricObject build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MetricObject,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.