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