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