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