Class UUID
Defined in: uuid.js.
Constructor Attributes | Constructor Name and Description |
---|---|
UUID()
|
Field Attributes | Field Name and Description |
---|---|
List of UUID field values (as binary bit string values).
|
|
128-bit binary bit string representation.
|
|
<static> <constant> |
UUID.FIELD_NAMES
Names of each UUID field.
|
<static> <constant> |
UUID.FIELD_SIZES
Sizes of each UUID field.
|
List of UUID field values (as hexadecimal string values).
|
|
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
|
|
List of UUID field values (as integer values).
|
|
<static> |
UUID.overwrittenUUID
Preserves the value of 'UUID' global variable set before the load of UUID.js.
|
UUID string representation as a URN ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
|
|
UUID version number defined in RFC 4122.
|
Method Attributes | Method Name and Description |
---|---|
equals(uuid)
Tests if two UUID objects are equal.
|
|
<static> |
UUID.generate()
The simplest function to get an UUID string.
|
<static> |
UUID.genV1()
Generates a version 1 UUID.
|
<static> |
UUID.genV4()
Generates a version 4 UUID.
|
<static> |
UUID.makeBackwardCompatible()
Reinstalls UUID.generate method to emulate the interface of UUID.js version 2.x.
|
<static> |
UUID.parse(strId)
Converts hexadecimal UUID string to an UUID object.
|
<static> |
UUID.resetState()
Re-initializes version 1 UUID state.
|
toString()
Returns UUID string representation.
|
Field Detail
{string[]}
bitFields
List of UUID field values (as binary bit string values).
{string}
bitString
128-bit binary bit string representation.
<static> <constant>
{string[]}
UUID.FIELD_NAMES
Names of each UUID field.
- Since:
- 3.0
<static> <constant>
{int[]}
UUID.FIELD_SIZES
Sizes of each UUID field.
- Since:
- 3.0
{string[]}
hexFields
List of UUID field values (as hexadecimal string values).
{string}
hexString
UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
{int[]}
intFields
List of UUID field values (as integer values).
<static>
{object}
UUID.overwrittenUUID
Preserves the value of 'UUID' global variable set before the load of UUID.js.
- Since:
- 3.2
{string}
urn
UUID string representation as a URN ("urn:uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
{int}
version
UUID version number defined in RFC 4122.
Method Detail
{bool}
equals(uuid)
Tests if two UUID objects are equal.
- Parameters:
- {UUID} uuid
- Returns:
- {bool} True if two UUID objects are equal.
<static>
{string}
UUID.generate()
The simplest function to get an UUID string.
- Returns:
- {string} A version 4 UUID string.
<static>
{UUID}
UUID.genV1()
Generates a version 1 UUID.
- Since:
- 3.0
<static>
{UUID}
UUID.genV4()
Generates a version 4 UUID.
- Since:
- 3.0
<static>
UUID.makeBackwardCompatible()
Reinstalls UUID.generate method to emulate the interface of UUID.js version 2.x.
- Deprecated:
- Version 2.x. compatible interface is not recommended.
- Since:
- 3.1
<static>
{UUID}
UUID.parse(strId)
Converts hexadecimal UUID string to an UUID object.
- Parameters:
- {string} strId
- UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
- Since:
- 3.0
<static>
UUID.resetState()
Re-initializes version 1 UUID state.
- Since:
- 3.0
{string}
toString()
Returns UUID string representation.
- Returns:
- {string} UUID#hexString.