public class ArpSourceHardwareAddressBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<ArpSourceHardwareAddress>
ArpSourceHardwareAddressBuilder
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:
ArpSourceHardwareAddressBuilder createTarget(int fooXyzzy, int barBaz) {
return new ArpSourceHardwareAddressBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of ArpSourceHardwareAddressBuilder, 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 methodArpSourceHardwareAddressBuilder
,
Builder
Constructor and Description |
---|
ArpSourceHardwareAddressBuilder() |
ArpSourceHardwareAddressBuilder(ArpSourceHardwareAddress base) |
ArpSourceHardwareAddressBuilder(MacAddressFilter arg) |
Modifier and Type | Method and Description |
---|---|
ArpSourceHardwareAddressBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> |
augmentation(Class<E$$> augmentationType) |
ArpSourceHardwareAddress |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getAddress() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress |
getMask() |
ArpSourceHardwareAddressBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> augmentationType) |
ArpSourceHardwareAddressBuilder |
setAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
ArpSourceHardwareAddressBuilder |
setMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value) |
public ArpSourceHardwareAddressBuilder()
public ArpSourceHardwareAddressBuilder(MacAddressFilter arg)
public ArpSourceHardwareAddressBuilder(ArpSourceHardwareAddress base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getAddress()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress getMask()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> E$$ augmentation(Class<E$$> augmentationType)
public ArpSourceHardwareAddressBuilder setAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public ArpSourceHardwareAddressBuilder setMask(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress value)
public ArpSourceHardwareAddressBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress> augmentationValue)
public ArpSourceHardwareAddressBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<ArpSourceHardwareAddress>> augmentationType)
public ArpSourceHardwareAddress build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<ArpSourceHardwareAddress,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.