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