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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final int
     
    static final List<String>
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RuntimeSettings(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 a RuntimeSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the locale record component.
    Returns the value of the logLevel record component.
    int
    Returns the value of the maxLogStorageMiB record component.
    boolean
    Returns the value of the safeMode record component.
    boolean
    Returns the value of the separateExportSaveDirectory record component.
    boolean
    Returns the value of the skipStartupInformation record component.
    boolean
    Returns the value of the skipStartupSplash record component.
    boolean
    Returns the value of the skipStartupUpdateCheck record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the useTextIcon record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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 a RuntimeSettings record class.
      Parameters:
      safeMode - the value for the safeMode record component
      logLevel - the value for the logLevel record component
      maxLogStorageMiB - the value for the maxLogStorageMiB record component
      skipStartupUpdateCheck - the value for the skipStartupUpdateCheck record component
      skipStartupSplash - the value for the skipStartupSplash record component
      skipStartupInformation - the value for the skipStartupInformation record component
      separateExportSaveDirectory - the value for the separateExportSaveDirectory record component
      locale - the value for the locale record component
      useTextIcon - the value for the useTextIcon record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • safeMode

      public boolean safeMode()
      Returns the value of the safeMode record component.
      Returns:
      the value of the safeMode record component
    • logLevel

      public String logLevel()
      Returns the value of the logLevel record component.
      Returns:
      the value of the logLevel record component
    • maxLogStorageMiB

      public int maxLogStorageMiB()
      Returns the value of the maxLogStorageMiB record component.
      Returns:
      the value of the maxLogStorageMiB record component
    • skipStartupUpdateCheck

      public boolean skipStartupUpdateCheck()
      Returns the value of the skipStartupUpdateCheck record component.
      Returns:
      the value of the skipStartupUpdateCheck record component
    • skipStartupSplash

      public boolean skipStartupSplash()
      Returns the value of the skipStartupSplash record component.
      Returns:
      the value of the skipStartupSplash record component
    • skipStartupInformation

      public boolean skipStartupInformation()
      Returns the value of the skipStartupInformation record component.
      Returns:
      the value of the skipStartupInformation record component
    • separateExportSaveDirectory

      public boolean separateExportSaveDirectory()
      Returns the value of the separateExportSaveDirectory record component.
      Returns:
      the value of the separateExportSaveDirectory record component
    • locale

      public String locale()
      Returns the value of the locale record component.
      Returns:
      the value of the locale record component
    • useTextIcon

      public boolean useTextIcon()
      Returns the value of the useTextIcon record component.
      Returns:
      the value of the useTextIcon record component