intellij-randomness / com.fwdekker.randomness / SettingsManager

SettingsManager

interface SettingsManager<S : Settings<*, *>>

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

Parameters

S - the type of settings that is saved and loaded

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, T>, T : Scheme<T>> : SettingsManager<S>

A component that allows the user to edit settings and its corresponding schemes.