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