UuidScheme

data class UuidScheme(var myName: String = DEFAULT_NAME, var version: Int = DEFAULT_VERSION, var enclosure: String = DEFAULT_ENCLOSURE, var capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, var addDashes: Boolean = DEFAULT_ADD_DASHES) : Scheme<UuidScheme> (source)

Contains settings for generating random UUIDs.

See also

Constructors

Link copied to clipboard
constructor(myName: String = DEFAULT_NAME, version: Int = DEFAULT_VERSION, enclosure: String = DEFAULT_ENCLOSURE, capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, addDashes: Boolean = DEFAULT_ADD_DASHES)

Types

Link copied to clipboard
object Companion

Holds constants.

Properties

Link copied to clipboard
var addDashes: Boolean

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

Link copied to clipboard

The capitalization mode of the generated UUID.

Link copied to clipboard
var enclosure: String

The string that encloses the generated UUID on both sides.

Link copied to clipboard
open override var myName: String

The name of the scheme.

Link copied to clipboard
var version: Int

The version of UUIDs to generate.

Functions

Link copied to clipboard
open override fun copyAs(name: String): UuidScheme

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

Link copied to clipboard
open override fun copyFrom(other: UuidScheme)

Shallowly copies the state of other into this.

Link copied to clipboard
@NotNull
@Nls
open fun getDisplayName(): @NotNull @Nls String
Link copied to clipboard
open override fun getName(): String

Same as myName.