public class IdPoolBuilder extends Object implements org.opendaylight.yangtools.concepts.Builder<IdPool>
IdPoolBuilder
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:
IdPoolBuilder createTarget(int fooXyzzy, int barBaz) {
return new IdPoolBuilderBuilder()
.setFoo(new FooBuilder().setXyzzy(fooXyzzy).build())
.setBar(new BarBuilder().setBaz(barBaz).build())
.build();
}
This pattern is supported by the immutable nature of IdPoolBuilder, 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 methodIdPoolBuilder
,
Builder
Constructor and Description |
---|
IdPoolBuilder() |
IdPoolBuilder(IdPool base) |
public IdPoolBuilder()
public IdPoolBuilder(IdPool base)
public IdPoolKey key()
public AvailableIdsHolder getAvailableIdsHolder()
public Integer getBlockSize()
public List<ChildPools> getChildPools()
public String getParentPoolName()
public String getPoolName()
public ReleasedIdsHolder getReleasedIdsHolder()
public <E$$ extends org.opendaylight.yangtools.yang.binding.Augmentation<IdPool>> E$$ augmentation(Class<E$$> augmentationType)
public IdPoolBuilder withKey(IdPoolKey key)
public IdPoolBuilder setAvailableIdsHolder(AvailableIdsHolder value)
public IdPoolBuilder setBlockSize(Integer value)
public IdPoolBuilder setChildPools(List<ChildPools> values)
public IdPoolBuilder setIdEntries(List<IdEntries> values)
public IdPoolBuilder setParentPoolName(String value)
public IdPoolBuilder setPoolName(String value)
public IdPoolBuilder setReleasedIdsHolder(ReleasedIdsHolder value)
public IdPoolBuilder addAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IdPool>> augmentationType, org.opendaylight.yangtools.yang.binding.Augmentation<IdPool> augmentationValue)
public IdPoolBuilder removeAugmentation(Class<? extends org.opendaylight.yangtools.yang.binding.Augmentation<IdPool>> augmentationType)
public IdPool build()
build
in interface org.opendaylight.yangtools.concepts.CheckedBuilder<IdPool,IllegalArgumentException>
Copyright © 2019 OpenDaylight. All rights reserved.