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