public class MatchEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<MatchEntry>
MatchEntryBuilder
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:
MatchEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new MatchEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of MatchEntryBuilder, 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 methodMatchEntryBuilder
,
Builder
Constructor and Description |
---|
MatchEntryBuilder() |
MatchEntryBuilder(MatchEntry base) |
MatchEntryBuilder(MatchEntryFieldsGrouping arg) |
MatchEntryBuilder(MatchEntryValueGrouping arg) |
Modifier and Type | Method and Description |
---|---|
MatchEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> |
augmentation(Class<E$$> augmentationType) |
MatchEntry |
build() |
void |
fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
Set fields from given grouping argument.
|
MatchEntryValue |
getMatchEntryValue() |
Class<? extends OxmClassBase> |
getOxmClass() |
Class<? extends MatchField> |
getOxmMatchField() |
Boolean |
isHasMask() |
MatchEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> augmentationType) |
MatchEntryBuilder |
setHasMask(Boolean value) |
MatchEntryBuilder |
setMatchEntryValue(MatchEntryValue value) |
MatchEntryBuilder |
setOxmClass(Class<? extends OxmClassBase> value) |
MatchEntryBuilder |
setOxmMatchField(Class<? extends MatchField> value) |
public MatchEntryBuilder()
public MatchEntryBuilder(MatchEntryFieldsGrouping arg)
public MatchEntryBuilder(MatchEntryValueGrouping arg)
public MatchEntryBuilder(MatchEntry base)
public void fieldsFrom(org.opendaylight.yangtools.yang.binding.DataObject arg)
arg
- grouping objectIllegalArgumentException
- if given argument is none of valid typespublic MatchEntryValue getMatchEntryValue()
public Class<? extends OxmClassBase> getOxmClass()
public Class<? extends MatchField> getOxmMatchField()
public Boolean isHasMask()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> E$$ augmentation(Class<E$$> augmentationType)
public MatchEntryBuilder setMatchEntryValue(MatchEntryValue value)
public MatchEntryBuilder setOxmClass(Class<? extends OxmClassBase> value)
public MatchEntryBuilder setOxmMatchField(Class<? extends MatchField> value)
public MatchEntryBuilder setHasMask(Boolean value)
public MatchEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry> augmentationValue)
public MatchEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<MatchEntry>> augmentationType)
public MatchEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<MatchEntry,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.