feat: 增强 ConfigSection

This commit is contained in:
2024-07-12 15:19:52 +08:00
parent be25334cc7
commit be756b0a56

View File

@@ -4,10 +4,7 @@ import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
@SuppressWarnings({"unused", "unchecked"})
@Getter
@@ -27,6 +24,15 @@ public class ConfigSection {
return map.containsKey(key);
}
public Set<String> getKeys() {
return map.keySet();
}
@Nullable
public Object get(@NotNull String key) {
return map.get(key);
}
@Nullable
public ConfigSection getSection(@NotNull String key) {
Object o = map.get(key);