Home Reference Source
public class | source

UUID

Represents a Neo4j UUID value, stored as a Uint8Array of length 16, which can be gotten as a uuid string. Created UUID objects are frozen with Object.freeze() in constructor and thus immutable.

Static Method Summary

Static Public Methods
public static

fromString(uuidString: string): UUID

Parses a string representation of a uuid and creates a UUID from it.

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

getTypedArray(): Uint8Array

Returns the internal Uint8Array, note that modifying this will modify the UUID.

public

toString(): string

Static Public Methods

public static fromString(uuidString: string): UUID source

Parses a string representation of a uuid and creates a UUID from it. Created UUID objects are frozen with Object.freeze() in constructor and thus immutable.

Params:

NameTypeAttributeDescription
uuidString string

a base-16 encoded uuid string of the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx or without any dashes

Return:

UUID

Public Constructors

public constructor() source

Public Methods

public getTypedArray(): Uint8Array source

Returns the internal Uint8Array, note that modifying this will modify the UUID.

Return:

Uint8Array

a Uint8Array of 16 bytes, representing the UUID.

public toString(): string source

Return:

string

The UUID encoded in base16 in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx