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