UuidScheme

data class UuidScheme(myName: String, version: Int, enclosure: String, capitalization: CapitalizationMode, addDashes: Boolean) : Scheme<UuidScheme>

Contains settings for generating random UUIDs.

See also

Constructors

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

Types

Companion
Link copied to clipboard
object Companion
Holds constants.

Functions

copyAs
Link copied to clipboard
open override fun copyAs(name: String): UuidScheme
Returns a copy of this scheme that has the given name.
copyFrom
Link copied to clipboard
open override fun copyFrom(other: UuidScheme)
Shallowly copies the state of other into this.
getDisplayName
Link copied to clipboard
@NotNull()
@Nls()
open fun getDisplayName(): @NotNull() @Nls() String
getName
Link copied to clipboard
open override fun getName(): String
Same as myName.

Properties

addDashes
Link copied to clipboard
var addDashes: Boolean
True if and only if the UUID should have dashes in it.
capitalization
Link copied to clipboard
var capitalization: CapitalizationMode
The capitalization mode of the generated UUID.
enclosure
Link copied to clipboard
var enclosure: String
The string that encloses the generated UUID on both sides.
myName
Link copied to clipboard
open override var myName: String
The name of the scheme.
version
Link copied to clipboard
var version: Int
The version of UUIDs to generate.

Sources

jvm source
Link copied to clipboard