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

UuidSettings

data class UuidSettings : Settings<UuidSettings>

Contains settings for generating random UUIDs.

Constructors

<init>

UuidSettings(version: Int = DEFAULT_VERSION, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, addDashes: Boolean = DEFAULT_ADD_DASHES)

Contains settings for generating random UUIDs.

Properties

addDashes

var addDashes: Boolean

True if and only if the UUID should have dashes in it.

capitalization

var capitalization: CapitalizationMode

The capitalization mode of the generated UUID.

enclosure

var enclosure: String

The string that encloses the generated UUID on both sides.

version

var version: Int

Functions

copyState

fun copyState(): UuidSettings

Returns a shallow copy of this instance.

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_ADD_DASHES

const val DEFAULT_ADD_DASHES: Boolean

The default value of the addDashes field.

DEFAULT_CAPITALIZATION

val DEFAULT_CAPITALIZATION: CapitalizationMode

The default value of the capitalization field.

DEFAULT_ENCLOSURE

const val DEFAULT_ENCLOSURE: String

The default value of the enclosure field.

DEFAULT_VERSION

const val DEFAULT_VERSION: Int

The default value of the version field.