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

SettingsComponent

abstract class SettingsComponent<S : Settings<S>> : SettingsManager<S>

Superclass for settings components.