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