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