intellij-randomness / com.fwdekker.randomness / Scheme

Scheme

interface Scheme<SELF> : Scheme

A scheme is a collection of configurable values.

In a typical use case a user can quickly switch between instances of schemes of the same type to change the "preset" or "configuration" that is currently being used.

Parameters

SELF - the type of scheme that is stored; should be a self reference

See Also

Settings

Properties

myName

abstract var myName: String

The name of the scheme, used to identify it.

Functions

copyAs

abstract fun copyAs(name: String): SELF

Returns a copy of this scheme that has the given name.

copyFrom

abstract fun copyFrom(other: SELF): Unit

Shallowly copies the state of other into this.

getName

open fun getName(): String

Same as myName.

Companion Object Properties

DEFAULT_NAME

const val DEFAULT_NAME: String

The name of the default scheme.

Inheritors

ArrayScheme

data class ArrayScheme : Scheme<ArrayScheme>

Contains settings for generating arrays of other types of random values.

DecimalScheme

data class DecimalScheme : Scheme<DecimalScheme>

Contains settings for generating random decimals.

IntegerScheme

data class IntegerScheme : Scheme<IntegerScheme>

Contains settings for generating random integers.

StringScheme

data class StringScheme : Scheme<StringScheme>

Contains settings for generating random strings.

UuidScheme

data class UuidScheme : Scheme<UuidScheme>

Contains settings for generating random UUIDs.

WordScheme

data class WordScheme : Scheme<WordScheme>

Contains settings for generating random words.