Interface ConfigWrapper
- All Known Implementing Classes:
AbstractConfigWrapper,CommonsConfigWrapper,MapConfigWrapper,SnakeYamlConfigWrapper
public interface ConfigWrapper
Abstraction over config classes from many libraries.
If the underlying config does not contain a value at a given path, the get methods in this interface return null.
If any arguments of any method are null, the methods of this interface may throw a NullPointerException.
The
If the underlying config does not contain a value at a given path, the get methods in this interface return null.
If any arguments of any method are null, the methods of this interface may throw a NullPointerException.
The
getConfigSubsection(String) method called with an empty string as the argument should return
a ConfigWrapper equal to this, isConfigSubsection(String) with an empty string should return true,
and containsNode(String) with an empty string should return true.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsNode(String path) getBoolean(String path) getConfigSubsection(String path) getInteger(String path) <T> List<T> booleanbooleanbooleanisConfigSubsection(String path) booleanbooleanboolean<T> booleanbooleanbooleanboolean
-
Method Details
-
containsNode
-
getBoolean
-
getByte
-
getConfigSubsection
-
getList
-
getDouble
-
getFloat
-
getInteger
-
getLong
-
getShort
-
getString
-
isBoolean
-
isByte
-
isConfigSubsection
-
isDouble
-
isFloat
-
isInteger
-
isList
-
isLong
-
isShort
-
isString
-