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