intellij-randomness / com.fwdekker.randomness / SettingsManager

SettingsManager

interface SettingsManager<S : Settings<*>>

A SettingsManager is an object that can save and load settings.

Parameters

Functions

loadSettings

abstract fun loadSettings(): Unit

Loads the default settings object.

abstract fun loadSettings(settings: S): Unit

Loads settings.

saveSettings

abstract fun saveSettings(): Unit

Saves settings to the default settings object.

abstract fun saveSettings(settings: S): Unit

Saves settings to settings.

Inheritors

SettingsDialog

abstract class SettingsDialog<S : Settings<*>> : DialogWrapper, SettingsManager<S>

Superclass for settings dialogs.