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