@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @NotThreadSafe public final class CheckedCacheConfigBuilder<K,V,E extends Exception> extends Object
CheckedCacheConfig.
Initialize attributes and then invoke the build() method to create an
immutable instance.
CheckedCacheConfigBuilder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Constructor and Description |
|---|
CheckedCacheConfigBuilder()
Creates a builder for
CheckedCacheConfig instances. |
| Modifier and Type | Method and Description |
|---|---|
CheckedCacheConfigBuilder<K,V,E> |
anchor(Object anchor)
Initializes the value for the
anchor attribute. |
CheckedCacheConfig<K,V,E> |
build()
Builds a new
CheckedCacheConfig. |
CheckedCacheConfigBuilder<K,V,E> |
cacheFunction(CheckedCacheFunction<K,V,E> cacheFunction)
Initializes the value for the
cacheFunction attribute. |
CheckedCacheConfigBuilder<K,V,E> |
description(String description)
Initializes the value for the
description attribute. |
CheckedCacheConfigBuilder<K,V,E> |
id(String id)
Initializes the value for the
id attribute. |
public CheckedCacheConfigBuilder()
CheckedCacheConfig instances.@CanIgnoreReturnValue public final CheckedCacheConfigBuilder<K,V,E> cacheFunction(CheckedCacheFunction<K,V,E> cacheFunction)
cacheFunction attribute.cacheFunction - The value for cacheFunctionthis builder for use in a chained invocation@CanIgnoreReturnValue public final CheckedCacheConfigBuilder<K,V,E> anchor(Object anchor)
anchor attribute.anchor - The value for anchorthis builder for use in a chained invocation@CanIgnoreReturnValue public final CheckedCacheConfigBuilder<K,V,E> id(String id)
id attribute.
If not set, this attribute will have a default value as returned by the initializer of id.
id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final CheckedCacheConfigBuilder<K,V,E> description(String description)
description attribute.
If not set, this attribute will have a default value as returned by the initializer of description.
description - The value for descriptionthis builder for use in a chained invocationpublic CheckedCacheConfig<K,V,E> build()
CheckedCacheConfig.IllegalStateException - if any required attributes are missingCopyright © 2019 OpenDaylight. All rights reserved.