修饰符和类 |
成员函数描述 |
boolean |
check() |
boolean |
exists(String key) |
boolean |
exists(String key,
boolean ignoreCase) |
Object |
get(String key) |
<T> T |
get(String key,
T defaultValue) |
Map<String,Object> |
getAll() |
boolean |
getBoolean(String key) |
boolean |
getBoolean(String key,
boolean defaultValue) |
List<Boolean> |
getBooleanList(String key) |
List<Byte> |
getByteList(String key) |
List<Character> |
getCharacterList(String key) |
double |
getDouble(String key) |
double |
getDouble(String key,
double defaultValue) |
List<Double> |
getDoubleList(String key) |
List<Float> |
getFloatList(String key) |
int |
getInt(String key) |
int |
getInt(String key,
int defaultValue) |
List<Integer> |
getIntegerList(String key) |
Set<String> |
getKeys() |
Set<String> |
getKeys(boolean child) |
List |
getList(String key) |
List |
getList(String key,
List defaultList) |
long |
getLong(String key) |
long |
getLong(String key,
long defaultValue) |
List<Long> |
getLongList(String key) |
List<Map> |
getMapList(String key) |
Object |
getNested(String key)
此函数已弃用
use get(String) instead
|
<T> T |
getNested(String key,
T defaultValue)
此函数已弃用
use get(String, Object) instead
|
<T> T |
getNestedAs(String key,
Class<T> type)
此函数已弃用
use get(String) instead
|
ConfigSection |
getRootSection()
Get root (main) config section of the Config
|
ConfigSection |
getSection(String key) |
ConfigSection |
getSections() |
ConfigSection |
getSections(String key) |
List<Short> |
getShortList(String key) |
String |
getString(String key) |
String |
getString(String key,
String defaultValue) |
List<String> |
getStringList(String key) |
boolean |
isBoolean(String key) |
boolean |
isCorrect() |
boolean |
isDouble(String key) |
boolean |
isInt(String key) |
boolean |
isList(String key) |
boolean |
isLong(String key) |
boolean |
isSection(String key) |
boolean |
isString(String key) |
boolean |
load(InputStream inputStream) |
boolean |
load(String file) |
boolean |
load(String file,
int type) |
boolean |
load(String file,
int type,
ConfigSection defaultMap) |
void |
reload() |
void |
remove(String key) |
void |
removeNested(String key)
此函数已弃用
use remove(String) instead
|
boolean |
save() |
boolean |
save(Boolean async) |
boolean |
save(File file) |
boolean |
save(File file,
boolean async)
Save configuration into provided file.
|
void |
set(String key,
Object value) |
void |
setAll(ConfigSection section) |
void |
setAll(LinkedHashMap<String,Object> map) |
int |
setDefault(ConfigSection map) |
int |
setDefault(LinkedHashMap<String,Object> map) |