public class ArpTpaBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ArpTpa>
ArpTpaBuilder
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:
ArpTpaBuilder createTarget(int fooXyzzy, int barBaz) {
return new ArpTpaBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ArpTpaBuilder, 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 methodArpTpaBuilder
,
Builder
Constructor and Description |
---|
ArpTpaBuilder() |
ArpTpaBuilder(ArpTpa base) |
Modifier and Type | Method and Description |
---|---|
ArpTpaBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> |
augmentation(Class<E$$> augmentationType) |
ArpTpa |
build() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address |
getIpv4Address() |
byte[] |
getMask() |
ArpTpaBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> augmentationType) |
ArpTpaBuilder |
setIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address value) |
ArpTpaBuilder |
setMask(byte[] value) |
public ArpTpaBuilder()
public ArpTpaBuilder(ArpTpa base)
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address getIpv4Address()
public byte[] getMask()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> E$$ augmentation(Class<E$$> augmentationType)
public ArpTpaBuilder setIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address value)
public ArpTpaBuilder setMask(byte[] value)
public ArpTpaBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa> augmentationValue)
public ArpTpaBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpTpa>> augmentationType)
public ArpTpa build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ArpTpa,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.