T - type of value this setting will parse input string into and return.@Deprecated public interface Setting<T> extends Function<Function<String,String>,T>, SettingValidator, SettingGroup<T>
This interface is available only for use, not for implementing. Implementing this interface is not expected, and backwards compatibility is not guaranteed for implementors.
| Modifier and Type | Method and Description |
|---|---|
T |
from(Configuration config)
Deprecated.
|
String |
getDefaultValue()
Deprecated.
Get the default value of this setting, as a string.
|
default Optional<Function<String,T>> |
getParser()
Deprecated.
Get the function used to parse this setting.
|
String |
name()
Deprecated.
Get the name of the setting.
|
default List<Setting<T>> |
settings(Map<String,String> params)
Deprecated.
This will return a list of all settings beloning to this group based on the settings in
params |
default Map<String,String> |
validate(Map<String,String> rawConfig,
Consumer<String> warningConsumer)
Deprecated.
Validate one or several setting values, throwing on invalid values.
|
default Map<String,T> |
values(Map<String,String> validConfig)
Deprecated.
Apply this setting group to the config and return all of its configured keys and their corresponding values.
|
void |
withScope(Function<String,String> scopingRule)
Deprecated.
Make this setting bound to a scope
|
deprecated, description, documentedDefaultValue, dynamic, internal, replacement, valueDescriptionString name()
void withScope(Function<String,String> scopingRule)
scopingRule - The scoping rule to be applied to this settingString getDefaultValue()
@Deprecated T from(Configuration config)
default Map<String,T> values(Map<String,String> validConfig)
SettingGroupvalues in interface SettingGroup<T>validConfig - which can be examined.default Map<String,String> validate(Map<String,String> rawConfig, Consumer<String> warningConsumer) throws InvalidSettingException
SettingValidatorvalidate in interface SettingValidatorrawConfig - available to be validatedwarningConsumer - a consumer for configuration warningsInvalidSettingException - if invalid value detecteddefault List<Setting<T>> settings(Map<String,String> params)
SettingGroupparamssettings in interface SettingGroup<T>params - a map of all settingsCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.