Class ScxConfig

All Implemented Interfaces:
ScxConfigSource

public final class ScxConfig extends MultiConfigSource
配置文件类
Version:
0.0.1
Author:
scx567888
  • Constructor Details

  • Method Details

    • get

      public cool.scx.object.node.Node get(String keyPath)
      从配置文件中获取配置值 没有找到会返回 null
      Parameters:
      keyPath - keyPath
      Returns:
      a T object.
    • get

      public <T> T get(String keyPath, ScxConfigValueHandler<T> handler)
    • getOrDefault

      public <T> T getOrDefault(String keyPath, T defaultVal)
    • get

      public <T> T get(String keyPath, Class<T> type)