@Public public class UnmodifiableConfiguration extends Configuration
confData| 构造器和说明 |
|---|
UnmodifiableConfiguration(Configuration config)
Creates a new UnmodifiableConfiguration, which holds a copy of the given configuration that
cannot be altered.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAll(Configuration other) |
void |
addAll(Configuration other,
String prefix)
Adds all entries from the given configuration into this configuration.
|
void |
addAllToProperties(Properties props)
Adds all entries in this
Configuration to the given Properties. |
<T> boolean |
removeConfig(ConfigOption<T> configOption)
Removes given config option from the configuration.
|
clone, contains, containsKey, equals, fromMap, get, getBoolean, getBoolean, getBoolean, getBytes, getClass, getDouble, getDouble, getDouble, getEnum, getFloat, getFloat, getFloat, getInteger, getInteger, getInteger, getLong, getLong, getLong, getOptional, getString, getString, getString, getValue, hashCode, keySet, read, set, setBoolean, setBoolean, setBytes, setClass, setDouble, setDouble, setFloat, setFloat, setInteger, setInteger, setLong, setLong, setString, setString, toMap, toString, writepublic UnmodifiableConfiguration(Configuration config)
config - The configuration with the original contents.public void addAllToProperties(Properties props)
ConfigurationConfiguration to the given Properties.addAllToProperties 在类中 Configurationpublic final void addAll(Configuration other)
addAll 在类中 Configurationpublic final void addAll(Configuration other, String prefix)
ConfigurationaddAll 在类中 Configurationother - The configuration whose entries are added to this configuration.prefix - The prefix to prepend.public <T> boolean removeConfig(ConfigOption<T> configOption)
ConfigurationremoveConfig 在类中 ConfigurationT - Type of the config optionconfigOption - config option to removeCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.