intellij-randomness / com.fwdekker.randomness.integer / IntegerSettings

IntegerSettings

data class IntegerSettings : Settings<IntegerSettings, IntegerScheme>

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

Constructors

<init>

IntegerSettings(schemes: MutableList<IntegerScheme> = DEFAULT_SCHEMES, currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME)

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

Properties

currentSchemeName

var currentSchemeName: String

the scheme that is currently active

schemes

var schemes: MutableList<IntegerScheme>

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(): IntegerSettings

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

getState

fun getState(): IntegerSettings

Returns this.

loadState

fun loadState(state: IntegerSettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: IntegerSettings

The persistent IntegerSettings 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<IntegerScheme>

The default value of the schemes field.