mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
add javadocs
This commit is contained in:
parent
9e37322377
commit
8c7e142eb0
@ -45,6 +45,14 @@ public class Setting<T> extends ToXContentToBytes {
|
|||||||
private final boolean dynamic;
|
private final boolean dynamic;
|
||||||
private final Scope scope;
|
private final Scope scope;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new Setting instance
|
||||||
|
* @param key the settings key for this setting.
|
||||||
|
* @param defaultValue a default value function that returns the default values string representation.
|
||||||
|
* @param parser a parser that parses the string rep into a complex datatype.
|
||||||
|
* @param dynamic true iff this setting can be dynamically updateable
|
||||||
|
* @param scope the scope of this setting
|
||||||
|
*/
|
||||||
public Setting(String key, Function<Settings, String> defaultValue, Function<String, T> parser, boolean dynamic, Scope scope) {
|
public Setting(String key, Function<Settings, String> defaultValue, Function<String, T> parser, boolean dynamic, Scope scope) {
|
||||||
assert parser.apply(defaultValue.apply(Settings.EMPTY)) != null || this.isGroupSetting(): "parser returned null";
|
assert parser.apply(defaultValue.apply(Settings.EMPTY)) != null || this.isGroupSetting(): "parser returned null";
|
||||||
this.key = key;
|
this.key = key;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user