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