intellij-randomness / com.fwdekker.randomness.decimal / DecimalSettings

DecimalSettings

data class DecimalSettings : Settings<DecimalSettings, DecimalScheme>

The user-configurable collection of schemes applicable to generating decimals.

Constructors

<init>

DecimalSettings(schemes: MutableList<DecimalScheme> = DEFAULT_SCHEMES, currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME)

The user-configurable collection of schemes applicable to generating decimals.

Properties

currentSchemeName

var currentSchemeName: String

the scheme that is currently active

schemes

var schemes: MutableList<DecimalScheme>

the schemes that the user can choose from

Inherited Properties

currentScheme

open var currentScheme: SCHEME

The instance of the scheme that is currently active.

Functions

deepCopy

fun deepCopy(): DecimalSettings

Returns a deep copy of the settings and the contained schemes.

getState

fun getState(): DecimalSettings

Returns this.

loadState

fun loadState(state: DecimalSettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: DecimalSettings

The persistent DecimalSettings instance.

DEFAULT_CURRENT_SCHEME_NAME

const val DEFAULT_CURRENT_SCHEME_NAME: String

The default value of the currentSchemeName field.

DEFAULT_SCHEMES

val DEFAULT_SCHEMES: MutableList<DecimalScheme>

The default value of the schemes field.