|
@@ -1053,15 +1053,6 @@ public class Setting<T> implements ToXContentObject {
|
|
return new Setting<>(key, fallbackSetting, (s) -> parseInt(s, minValue, key), properties);
|
|
return new Setting<>(key, fallbackSetting, (s) -> parseInt(s, minValue, key), properties);
|
|
}
|
|
}
|
|
|
|
|
|
- public static Setting<Integer> intSetting(
|
|
|
|
- final String key,
|
|
|
|
- final Setting<Integer> fallbackSetting,
|
|
|
|
- final int minValue,
|
|
|
|
- final int maxValue,
|
|
|
|
- final Property... properties) {
|
|
|
|
- return new Setting<>(key, fallbackSetting, (s) -> parseInt(s, minValue, maxValue, key), properties);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public static Setting<Integer> intSetting(String key, Setting<Integer> fallbackSetting, int minValue, Validator<Integer> validator,
|
|
public static Setting<Integer> intSetting(String key, Setting<Integer> fallbackSetting, int minValue, Validator<Integer> validator,
|
|
Property... properties) {
|
|
Property... properties) {
|
|
return new Setting<>(new SimpleKey(key), fallbackSetting, fallbackSetting::getRaw, (s) -> parseInt(s, minValue, key),validator,
|
|
return new Setting<>(new SimpleKey(key), fallbackSetting, fallbackSetting::getRaw, (s) -> parseInt(s, minValue, key),validator,
|