Package dev.turboism.sdk.runtime
Record Class RuntimeSettings
java.lang.Object
java.lang.Record
dev.turboism.sdk.runtime.RuntimeSettings
public record RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory, String locale, boolean useTextIcon)
extends Record
Immutable global runtime settings edited by Turboism's built-in settings panel.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeSettings(boolean safeMode, String logLevel, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation) RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory) RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory, String locale) Source-compatible constructor retaining the pre-useTextIcon canonical signature.RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory, String locale, boolean useTextIcon) Creates an instance of aRuntimeSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.logLevel()Returns the value of thelogLevelrecord component.intReturns the value of themaxLogStorageMiBrecord component.booleansafeMode()Returns the value of thesafeModerecord component.booleanReturns the value of theseparateExportSaveDirectoryrecord component.booleanReturns the value of theskipStartupInformationrecord component.booleanReturns the value of theskipStartupSplashrecord component.booleanReturns the value of theskipStartupUpdateCheckrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseTextIconrecord component.
-
Field Details
-
DEFAULT_MAX_LOG_STORAGE_MIB
public static final int DEFAULT_MAX_LOG_STORAGE_MIB- See Also:
-
MIN_MAX_LOG_STORAGE_MIB
public static final int MIN_MAX_LOG_STORAGE_MIB- See Also:
-
MAX_MAX_LOG_STORAGE_MIB
public static final int MAX_MAX_LOG_STORAGE_MIB- See Also:
-
DEFAULT_LOCALE
- See Also:
-
LOCALE_OPTIONS
-
-
Constructor Details
-
RuntimeSettings
public RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory) -
RuntimeSettings
public RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory, String locale) Source-compatible constructor retaining the pre-useTextIcon canonical signature. -
RuntimeSettings
public RuntimeSettings(boolean safeMode, String logLevel, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation) -
RuntimeSettings
public RuntimeSettings(boolean safeMode, String logLevel, int maxLogStorageMiB, boolean skipStartupUpdateCheck, boolean skipStartupSplash, boolean skipStartupInformation, boolean separateExportSaveDirectory, String locale, boolean useTextIcon) Creates an instance of aRuntimeSettingsrecord class.- Parameters:
safeMode- the value for thesafeModerecord componentlogLevel- the value for thelogLevelrecord componentmaxLogStorageMiB- the value for themaxLogStorageMiBrecord componentskipStartupUpdateCheck- the value for theskipStartupUpdateCheckrecord componentskipStartupSplash- the value for theskipStartupSplashrecord componentskipStartupInformation- the value for theskipStartupInformationrecord componentseparateExportSaveDirectory- the value for theseparateExportSaveDirectoryrecord componentlocale- the value for thelocalerecord componentuseTextIcon- the value for theuseTextIconrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
safeMode
public boolean safeMode()Returns the value of thesafeModerecord component.- Returns:
- the value of the
safeModerecord component
-
logLevel
Returns the value of thelogLevelrecord component.- Returns:
- the value of the
logLevelrecord component
-
maxLogStorageMiB
public int maxLogStorageMiB()Returns the value of themaxLogStorageMiBrecord component.- Returns:
- the value of the
maxLogStorageMiBrecord component
-
skipStartupUpdateCheck
public boolean skipStartupUpdateCheck()Returns the value of theskipStartupUpdateCheckrecord component.- Returns:
- the value of the
skipStartupUpdateCheckrecord component
-
skipStartupSplash
public boolean skipStartupSplash()Returns the value of theskipStartupSplashrecord component.- Returns:
- the value of the
skipStartupSplashrecord component
-
skipStartupInformation
public boolean skipStartupInformation()Returns the value of theskipStartupInformationrecord component.- Returns:
- the value of the
skipStartupInformationrecord component
-
separateExportSaveDirectory
public boolean separateExportSaveDirectory()Returns the value of theseparateExportSaveDirectoryrecord component.- Returns:
- the value of the
separateExportSaveDirectoryrecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
useTextIcon
public boolean useTextIcon()Returns the value of theuseTextIconrecord component.- Returns:
- the value of the
useTextIconrecord component
-