- 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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forConfigItem.static classConfigItem.BuilderBase<BUILDER extends ConfigItem.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigItem> Fluent API builder base forConfigItem. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigItem.Builderbuilder()Create a new fluent API builder to customize configuration.static ConfigItem.Builderbuilder(ConfigItem instance) Create a new fluent API builder from an existing instance.booleanWhether to cache this handled config item or not.static ConfigItemcreate()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
-