intellij-randomness / com.fwdekker.randomness.array / ArraySettings

ArraySettings

data class ArraySettings : Settings<ArraySettings, ArrayScheme>

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

Constructors

<init>

ArraySettings(schemes: MutableList<ArrayScheme> = DEFAULT_SCHEMES, currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME)

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

Properties

currentSchemeName

var currentSchemeName: String

the scheme that is currently active

schemes

var schemes: MutableList<ArrayScheme>

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

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

getState

fun getState(): ArraySettings

Returns this.

loadState

fun loadState(state: ArraySettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: ArraySettings

The persistent ArraySettings 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<ArrayScheme>

The default value of the schemes field.