Class StandaloneConfigExt
java.lang.Object
com.kamikazejam.kamicommon.configuration.standalone.AbstractConfig<YamlConfigurationStandalone>
com.kamikazejam.kamicommon.configuration.standalone.StandaloneConfig
com.kamikazejam.kamicommon.configuration.standalone.StandaloneConfigExt
- All Implemented Interfaces:
ConfigurationMethods<ConfigurationSectionStandalone>
,ConfigurationSectionStandalone
StandaloneConfig
but with some extended features-
Constructor Summary
ConstructorsConstructorDescriptionStandaloneConfigExt
(@NotNull LoggerService logger, @NotNull File file) Creates a new config instance with the given logger and destination file.
This constructor enables defaults using the following resource file method:
- Assumes a resource file with the same name as the provided file, exists in the current jar.
- SeeStandaloneConfig.getDefaultIS(LoggerService, File)
StandaloneConfigExt
(@NotNull LoggerService logger, @NotNull File file, @Nullable Supplier<InputStream> defaultsStream) Creates a new config instance with the given logger and destination file.
This constructor uses defaults if and only if the provided supplier is NOT null:
- Providing a non-null supplier will enable defaults using the provided InputStream - Providing a null supplier will disable defaults -
Method Summary
Methods inherited from class com.kamikazejam.kamicommon.configuration.standalone.StandaloneConfig
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getConfigurationSection, getConfigurationSequence, getCurrentPath, getDefaultIS, getDouble, getDouble, getFile, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getYamlConfiguration, isBoolean, isByte, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, put, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, reload, set, setBoolean, setByte, setDouble, setFloat, setInt, setInteger, setLong, setShort, setString
Methods inherited from class com.kamikazejam.kamicommon.configuration.standalone.AbstractConfig
isChanged, save, save, setChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kamikazejam.kamicommon.yaml.base.ConfigurationMethods
isChanged, setChanged
-
Constructor Details
-
StandaloneConfigExt
Creates a new config instance with the given logger and destination file.
This constructor enables defaults using the following resource file method:
- Assumes a resource file with the same name as the provided file, exists in the current jar.
- SeeStandaloneConfig.getDefaultIS(LoggerService, File)
-
StandaloneConfigExt
public StandaloneConfigExt(@NotNull @NotNull LoggerService logger, @NotNull @NotNull File file, @Nullable @Nullable Supplier<InputStream> defaultsStream) Creates a new config instance with the given logger and destination file.
This constructor uses defaults if and only if the provided supplier is NOT null:
- Providing a non-null supplier will enable defaults using the provided InputStream - Providing a null supplier will disable defaults- Parameters:
defaultsStream
- The optional supplier to load defaults from.
-
-
Method Details
-
getString
- Specified by:
getString
in interfaceConfigurationMethods<ConfigurationSectionStandalone>
- Overrides:
getString
in classStandaloneConfig
-
getString
- Specified by:
getString
in interfaceConfigurationMethods<ConfigurationSectionStandalone>
- Overrides:
getString
in classStandaloneConfig
-
getStringList
- Specified by:
getStringList
in interfaceConfigurationMethods<ConfigurationSectionStandalone>
- Overrides:
getStringList
in classStandaloneConfig
-
getStringList
- Specified by:
getStringList
in interfaceConfigurationMethods<ConfigurationSectionStandalone>
- Overrides:
getStringList
in classStandaloneConfig
-
applyThisPlaceholders
-