public class OfListBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<OfList>
OfListBuilder 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:
OfListBuilder createTarget(int fooXyzzy, int barBaz) {
return new OfListBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of OfListBuilder, 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 methodOfListBuilder,
Builder| Constructor and Description |
|---|
OfListBuilder() |
OfListBuilder(OfList base) |
OfListBuilder(Tlv arg) |
| Modifier and Type | Method and Description |
|---|---|
OfListBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<OfList> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> |
augmentation(Class<E$$> augmentationType) |
OfList |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
List<OfId> |
getCodes() |
OfListBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> augmentationType) |
OfListBuilder |
setCodes(List<OfId> values) |
public OfListBuilder()
public OfListBuilder(Tlv arg)
public OfListBuilder(OfList base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg - grouping objectIllegalArgumentException - if given argument is none of valid typespublic <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> E$$ augmentation(Class<E$$> augmentationType)
public OfListBuilder setCodes(List<OfId> values)
public OfListBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<OfList> augmentationValue)
public OfListBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<OfList>> augmentationType)
public OfList build()
build in interface org.opendaylight.yangtools.concepts.CheckedBuilder<OfList,IllegalArgumentException>Copyright © 2020 OpenDaylight. All rights reserved.