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

UuidScheme

data class UuidScheme : Scheme<UuidScheme>

Contains settings for generating random UUIDs.

Constructors

<init>

UuidScheme(myName: String = DEFAULT_NAME, 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.

myName

var myName: String

The name of the scheme.

version

var version: Int

The version of UUIDs to generate.

Functions

copyAs

fun copyAs(name: String): UuidScheme

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

copyFrom

fun copyFrom(other: UuidScheme): Unit

Shallowly copies the state of other into this.

Inherited Functions

getName

open fun getName(): String

Same as myName.

Companion Object Properties

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.