Skip to content
Reference > Classes

UUID

Definition

UUID var = .... ;

Extends

Extended By

None

Description

An immutable universally unique identifier (UUID).

Method Summary

Owner Name Return Type Description
UUID constructor(UUID formatted string) UUID creates a UUID
UUID constructor() UUID create a new, random secure UUID
Object getClassName() String Returns the string name of this object's class type.
UUID getClockSequence() UUID Returns an int that is the clock sequence value associated with this UUID.
UUID getLeastSignificantBits() Long returns the least significant 64 bits
UUID getMostSignificantBits() Long returns the most significant 64 bits
UUID getNode() Long returns the node part of this uid
UUID getTimestampRaw() UUID Returns the time stamp value of this UUID.
UUID getTimestampUTC() UTC Returns the timestamp of this UUID in millisecond.
UUID getTimestampUTCN() UTCN Returns the timestamp of this UUID in nanoseconds.
UUID getVariant() Integer returns the variant of this uid (it is the raw variant)
UUID getVersion() Integer returns the version of this uid
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor(UUID formatted string)

UUID uuid = new UUID(String UUID formatted string)

Description

creates a UUID

Parameter Definition

Name Type Description
UUID formatted string String  List, ex: 9a572886-a0ba-49e0-9218-0ac8302cc489

constructor()

UUID uuid = new UUID()

Description

create a new, random secure UUID


getClockSequence()

UUID UUID::getClockSequence()

Description

Returns an int that is the clock sequence value associated with this UUID.


getLeastSignificantBits()

Long UUID::getLeastSignificantBits()

Description

returns the least significant 64 bits


getMostSignificantBits()

Long UUID::getMostSignificantBits()

Description

returns the most significant 64 bits


getNode()

Long UUID::getNode()

Description

returns the node part of this uid


getTimestampRaw()

UUID UUID::getTimestampRaw()

Description

Returns the time stamp value of this UUID.


getTimestampUTC()

UTC UUID::getTimestampUTC()

Description

Returns the timestamp of this UUID in millisecond.


getTimestampUTCN()

UTCN UUID::getTimestampUTCN()

Description

Returns the timestamp of this UUID in nanoseconds.


getVariant()

Integer UUID::getVariant()

Description

returns the variant of this uid (it is the raw variant)


getVersion()

Integer UUID::getVersion()

Description

returns the version of this uid