intellij-randomness / com.fwdekker.randomness.string / StringSettings

StringSettings

data class StringSettings : Settings<StringSettings, StringScheme>

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

Constructors

<init>

StringSettings(schemes: MutableList<StringScheme> = DEFAULT_SCHEMES, currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME)

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

Properties

currentSchemeName

var currentSchemeName: String

the scheme that is currently active

schemes

var schemes: MutableList<StringScheme>

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

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

getState

fun getState(): StringSettings

Returns this.

loadState

fun loadState(state: StringSettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: StringSettings

The persistent StringSettings 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<StringScheme>

The default value of the schemes field.