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