intellij-randomness / com.fwdekker.randomness.uuid / UuidSettings

UuidSettings

data class UuidSettings : Settings<UuidSettings, UuidScheme>

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

Constructors

<init>

UuidSettings(schemes: MutableList<UuidScheme> = DEFAULT_SCHEMES, currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME)

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

Properties

currentSchemeName

var currentSchemeName: String

the scheme that is currently active

schemes

var schemes: MutableList<UuidScheme>

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

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

getState

fun getState(): UuidSettings

Returns this.

loadState

fun loadState(state: UuidSettings): Unit

Copies the fields of state to this.

Companion Object Properties

default

val default: UuidSettings

The persistent UuidSettings 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<UuidScheme>

The default value of the schemes field.