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