public class SupportedTunnelsBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<SupportedTunnels>
SupportedTunnelsBuilder
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:
SupportedTunnelsBuilder createTarget(int fooXyzzy, int barBaz) {
return new SupportedTunnelsBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of SupportedTunnelsBuilder, 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 methodSupportedTunnelsBuilder
,
Builder
Constructor and Description |
---|
SupportedTunnelsBuilder() |
SupportedTunnelsBuilder(SupportedTunnels base) |
Modifier and Type | Method and Description |
---|---|
SupportedTunnels |
build() |
List<SupportedTunnelEntry> |
getSupportedTunnelEntry() |
SupportedTunnelsBuilder |
setSupportedTunnelEntry(List<SupportedTunnelEntry> values) |
public SupportedTunnelsBuilder()
public SupportedTunnelsBuilder(SupportedTunnels base)
public List<SupportedTunnelEntry> getSupportedTunnelEntry()
public SupportedTunnelsBuilder setSupportedTunnelEntry(List<SupportedTunnelEntry> values)
public SupportedTunnels build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<SupportedTunnels,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.