Universally Unique Identifier (RFC4122).

Hierarchy (view full)

Constructors

  • Parameters

    • value: string

    Returns Uuid

Properties

value: string
nil: "00000000-0000-0000-0000-000000000000" = '00000000-0000-0000-0000-000000000000'

Nil/Empty UUID.

Methods

  • Converts a DomainPrimitive object to a string.

    Parameters

    • hint: "string"

    Returns string

  • Converts a DomainPrimitive object to a number.

    Parameters

    • hint: "number"

    Returns number

  • Converts a DomainPrimitive object to a string.

    Parameters

    • hint: "default"

    Returns string

  • Returns true if the DomainPrimitive value is null.

    Parameters

    Returns boolean

  • Inverse of the equals method.

    Parameters

    Returns boolean

  • Returns a string representation of an object.

    Returns string

  • Returns the DomainPrimitive value.

    Returns string

  • Returns a randomly generated v4 UUID attribute.

    Parameters

    • Optionaloptions: V4Options

    Returns string

  • Returns true if the argument is a ValueObject.

    Parameters

    • obj: unknown

    Returns obj is ValueObject