public class InterfaceTypeEntryBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<InterfaceTypeEntry>
InterfaceTypeEntryBuilder
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:
InterfaceTypeEntryBuilder createTarget(int fooXyzzy, int barBaz) {
return new InterfaceTypeEntryBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of InterfaceTypeEntryBuilder, 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 methodInterfaceTypeEntryBuilder
,
Builder
Constructor and Description |
---|
InterfaceTypeEntryBuilder() |
InterfaceTypeEntryBuilder(InterfaceTypeEntry base) |
Modifier and Type | Method and Description |
---|---|
InterfaceTypeEntryBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> |
augmentation(Class<E$$> augmentationType) |
InterfaceTypeEntry |
build() |
Class<? extends InterfaceTypeBase> |
getInterfaceType() |
InterfaceTypeEntryKey |
key() |
InterfaceTypeEntryBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> augmentationType) |
InterfaceTypeEntryBuilder |
setInterfaceType(Class<? extends InterfaceTypeBase> value) |
InterfaceTypeEntryBuilder |
withKey(InterfaceTypeEntryKey key) |
public InterfaceTypeEntryBuilder()
public InterfaceTypeEntryBuilder(InterfaceTypeEntry base)
public InterfaceTypeEntryKey key()
public Class<? extends InterfaceTypeBase> getInterfaceType()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> E$$ augmentation(Class<E$$> augmentationType)
public InterfaceTypeEntryBuilder withKey(InterfaceTypeEntryKey key)
public InterfaceTypeEntryBuilder setInterfaceType(Class<? extends InterfaceTypeBase> value)
public InterfaceTypeEntryBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry> augmentationValue)
public InterfaceTypeEntryBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<InterfaceTypeEntry>> augmentationType)
public InterfaceTypeEntry build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<InterfaceTypeEntry,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.