mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 18:48:20 +08:00
feat(source): 为 ConfigurationWrapper 添加 getSource() 方法以获取源实现内容。
BREAKING-CHANGE: ConfigurationWrapper 更改为泛型类,并新增 “getSource” 方法需要实现。
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user