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