Package org.instancio.internal.settings
Class InternalKey.InternalKeyBuilder<T>
java.lang.Object
org.instancio.internal.settings.InternalKey.InternalKeyBuilder<T>
- All Implemented Interfaces:
SettingKey.SettingKeyBuilder<T>
- Enclosing class:
InternalKey<T>
public static final class InternalKey.InternalKeyBuilder<T>
extends Object
implements SettingKey.SettingKeyBuilder<T>
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Returns the created setting key.Specifies the value's type.withPropertyKey(String propertyKey) Specifies the property key.
-
Method Details
-
ofType
Description copied from interface:SettingKey.SettingKeyBuilderSpecifies the value's type.- Specified by:
ofTypein interfaceSettingKey.SettingKeyBuilder<T>- Parameters:
type- of value- Returns:
- key builder
-
withPropertyKey
Description copied from interface:SettingKey.SettingKeyBuilderSpecifies the property key.When defining custom keys, it is advisable to use a custom prefix to distinguish from and to avoid potential clashes with built-in keys, for example:
com.acme.string.length=10If
withPropertyKey()is not specified, then an auto-generated property key will be assigned.- Specified by:
withPropertyKeyin interfaceSettingKey.SettingKeyBuilder<T>- Parameters:
propertyKey- a unique property key- Returns:
- key builder
-
create
Description copied from interface:SettingKey.SettingKeyBuilderReturns the created setting key.- Specified by:
createin interfaceSettingKey.SettingKeyBuilder<T>- Returns:
- the setting key
-