public class IfExternalBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IfExternal>
IfExternalBuilder
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:
IfExternalBuilder createTarget(int fooXyzzy, int barBaz) {
return new IfExternalBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IfExternalBuilder, 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 methodIfExternalBuilder
,
Builder
Constructor and Description |
---|
IfExternalBuilder() |
IfExternalBuilder(IfExternal base) |
Modifier and Type | Method and Description |
---|---|
IfExternal |
build() |
Boolean |
isExternal() |
IfExternalBuilder |
setExternal(Boolean value) |
public IfExternalBuilder()
public IfExternalBuilder(IfExternal base)
public Boolean isExternal()
public IfExternalBuilder setExternal(Boolean value)
public IfExternal build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IfExternal,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.