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