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, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getSource, 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, setStringMethods inherited from class com.kamikazejam.kamicommon.configuration.standalone.AbstractConfig
isChanged, save, save, setChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getStringin interfaceConfigurationMethods<ConfigurationSectionStandalone>- Overrides:
getStringin classStandaloneConfig
-
getString
- Specified by:
getStringin interfaceConfigurationMethods<ConfigurationSectionStandalone>- Overrides:
getStringin classStandaloneConfig
-
getStringList
- Specified by:
getStringListin interfaceConfigurationMethods<ConfigurationSectionStandalone>- Overrides:
getStringListin classStandaloneConfig
-
getStringList
- Specified by:
getStringListin interfaceConfigurationMethods<ConfigurationSectionStandalone>- Overrides:
getStringListin classStandaloneConfig
-
applyThisPlaceholders
-