- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
ConfigItem.BuilderBase.ConfigItemImpl
Configuration item policy.
Contains information about the given item to improve its handling.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forConfigItem
.static class
ConfigItem.BuilderBase<BUILDER extends ConfigItem.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigItem> Fluent API builder base forConfigItem
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigItem.Builder
builder()
Create a new fluent API builder to customize configuration.static ConfigItem.Builder
builder
(ConfigItem instance) Create a new fluent API builder from an existing instance.boolean
Whether to cache this handled config item or not.static ConfigItem
create()
Create a new instance with default values.item()
Handled config item.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance with default values.- Returns:
- a new instance
-
cacheItem
boolean cacheItem()Whether to cache this handled config item or not. If overall caching is disabled, this will not turn it on even if set to true.- Returns:
- whether to cache handled config item
-
item
String item()Handled config item.- Returns:
- config item
-