Package de.presti.ree6.installer
Class Config
java.lang.Object
de.presti.ree6.installer.Config
Config.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compareVersion
(String versionA, String versionB) Compare two version that are based on the x.y.z format.void
Create a new Config File.org.simpleyaml.configuration.file.YamlFile
Create a new Configuration.org.simpleyaml.configuration.file.YamlFile
Get the Configuration.getFile()
Get the Configuration File.void
init()
Initialize the Configuration.void
Migrate configs to newer versions
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
init
public void init()Initialize the Configuration. -
createConfigFile
public void createConfigFile()Create a new Config File. -
migrateOldConfig
public void migrateOldConfig()Migrate configs to newer versions -
compareVersion
Compare two version that are based on the x.y.z format.- Parameters:
versionA
- the base version.versionB
- the version that should be tested against versionA.- Returns:
- True if versionA is above versionB.
-
createConfiguration
public org.simpleyaml.configuration.file.YamlFile createConfiguration()Create a new Configuration.- Returns:
- The Configuration as
YamlFile
.
-
getConfiguration
public org.simpleyaml.configuration.file.YamlFile getConfiguration()Get the Configuration.- Returns:
- The Configuration as
YamlFile
.
-
getFile
Get the Configuration File.- Returns:
- The Configuration File as
File
.
-