public class TcpSrcValuesBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<TcpSrcValues>
TcpSrcValuesBuilder
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:
TcpSrcValuesBuilder createTarget(int fooXyzzy, int barBaz) {
return new TcpSrcValuesBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of TcpSrcValuesBuilder, 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 methodTcpSrcValuesBuilder
,
Builder
Constructor and Description |
---|
TcpSrcValuesBuilder() |
TcpSrcValuesBuilder(TcpSrcValues base) |
Modifier and Type | Method and Description |
---|---|
TcpSrcValuesBuilder |
addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> augmentationType,
org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues> augmentationValue) |
<E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> |
augmentation(Class<E$$> augmentationType) |
TcpSrcValues |
build() |
Integer |
getMask() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber |
getPort() |
TcpSrcValuesBuilder |
removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> augmentationType) |
TcpSrcValuesBuilder |
setMask(Integer value) |
TcpSrcValuesBuilder |
setPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value) |
public TcpSrcValuesBuilder()
public TcpSrcValuesBuilder(TcpSrcValues base)
public Integer getMask()
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber getPort()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> E$$ augmentation(Class<E$$> augmentationType)
public TcpSrcValuesBuilder setMask(Integer value)
public TcpSrcValuesBuilder setPort(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber value)
public TcpSrcValuesBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues> augmentationValue)
public TcpSrcValuesBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<TcpSrcValues>> augmentationType)
public TcpSrcValues build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<TcpSrcValues,IllegalArgumentException>
Copyright © 2020 OpenDaylight. All rights reserved.