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