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