1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2024-09-19 20:25:51 +00:00

feat(source): 为 ConfigurationWrapper 添加 getSource() 方法以获取源实现内容。

BREAKING-CHANGE: ConfigurationWrapper 更改为泛型类,并新增 “getSource” 方法需要实现。
This commit is contained in:
Carm Jos 2022-09-09 21:54:05 +08:00
parent dc28d743db
commit bc0dfd5698

View File

@ -12,7 +12,7 @@ import java.util.List;
interface ConfigurationReader { interface ConfigurationReader {
ConfigurationWrapper getWrapper(); ConfigurationWrapper<?> getWrapper();
default boolean isBoolean(@NotNull String path) { default boolean isBoolean(@NotNull String path) {
return getWrapper().isType(path, Boolean.class); return getWrapper().isType(path, Boolean.class);