public final class TypesafeConfigUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
configToMap(Config config) |
static Config |
extractSubConfig(Config source,
String prefix,
boolean keepPrefix)
已过时。
use org.apache.seatunnel.api.configuration.Option interface instead
|
static <T> T |
getConfig(Config config,
String configKey,
T defaultValue) |
static List<? extends Config> |
getConfigList(Config config,
String configKey,
@NonNull List<? extends Config> defaultValue) |
static boolean |
hasSubConfig(Config source,
String prefix)
Check if config with specific prefix exists
|
@Deprecated public static Config extractSubConfig(Config source, String prefix, boolean keepPrefix)
source - config sourceprefix - config prefixkeepPrefix - true if keep prefixpublic static boolean hasSubConfig(Config source, String prefix)
source - config sourceprefix - config prefixpublic static List<? extends Config> getConfigList(Config config, String configKey, @NonNull @NonNull List<? extends Config> defaultValue)
Copyright © 2024 The Apache Software Foundation. All rights reserved.