dojox.uuid.Uuid.compare
dojo.require("dojox.uuid.Uuid");
defined in dojox/uuid/Uuid.js
This implementation is intended to match the sample implementation
in IETF RFC 4122: http://www.ietf.org/rfc/rfc4122.txt
parameter | type | description |
---|
uuidOne | dojox.uuid.Uuid | Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.
This is the constructor for the Uuid class. The Uuid class offers methods for inspecting existing UUIDs.field | type | description |
---|
.compare | Function | Compares this UUID to another UUID, and returns 0, 1, or -1. | .getNode | Function | If this is a version 1 UUID (a time-based UUID), getNode() returns a 12-character string with the "node" or "pseudonode" portion of the UUID, which is the rightmost 12 characters. | .getTimestamp | Function | If this is a version 1 UUID (a time-based UUID), this method returns the timestamp value encoded in the UUID. The caller can ask for the timestamp to be returned either as a JavaScript Date object or as a 15-character string of hex digits. | .getVariant | Function | Returns a variant code that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.variant values. | .getVersion | Function | Returns a version number that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.version values. | .isEqual | Function | Returns true if this UUID is equal to the otherUuid, or false otherwise. | .isValid | Function | Returns true if the UUID was initialized with a valid value. | .toString | Function | This method returns a standard 36-character string representing the UUID, such as "3b12f1df-5232-4804-897e-917bf397618a". | ._nodeString | | | ._timestampAsDate | | | ._timestampAsHexString | | | ._uuidString | | | ._versionNumber | | |
|
uuidTwo | dojox.uuid.Uuid | Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.
This is the constructor for the Uuid class. The Uuid class offers methods for inspecting existing UUIDs.field | type | description |
---|
.compare | Function | Compares this UUID to another UUID, and returns 0, 1, or -1. | .getNode | Function | If this is a version 1 UUID (a time-based UUID), getNode() returns a 12-character string with the "node" or "pseudonode" portion of the UUID, which is the rightmost 12 characters. | .getTimestamp | Function | If this is a version 1 UUID (a time-based UUID), this method returns the timestamp value encoded in the UUID. The caller can ask for the timestamp to be returned either as a JavaScript Date object or as a 15-character string of hex digits. | .getVariant | Function | Returns a variant code that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.variant values. | .getVersion | Function | Returns a version number that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.version values. | .isEqual | Function | Returns true if this UUID is equal to the otherUuid, or false otherwise. | .isValid | Function | Returns true if the UUID was initialized with a valid value. | .toString | Function | This method returns a standard 36-character string representing the UUID, such as "3b12f1df-5232-4804-897e-917bf397618a". | ._nodeString | | | ._timestampAsDate | | | ._timestampAsHexString | | | ._uuidString | | | ._versionNumber | | |
|
otherUuid | dojox.uuid.Uuid | Any object that has toString() method that returns a 36-character string that conforms to the UUID spec.
This is the constructor for the Uuid class. The Uuid class offers methods for inspecting existing UUIDs.field | type | description |
---|
.compare | Function | Compares this UUID to another UUID, and returns 0, 1, or -1. | .getNode | Function | If this is a version 1 UUID (a time-based UUID), getNode() returns a 12-character string with the "node" or "pseudonode" portion of the UUID, which is the rightmost 12 characters. | .getTimestamp | Function | If this is a version 1 UUID (a time-based UUID), this method returns the timestamp value encoded in the UUID. The caller can ask for the timestamp to be returned either as a JavaScript Date object or as a 15-character string of hex digits. | .getVariant | Function | Returns a variant code that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.variant values. | .getVersion | Function | Returns a version number that indicates what type of UUID this is. Returns one of the enumerated dojox.uuid.version values. | .isEqual | Function | Returns true if this UUID is equal to the otherUuid, or false otherwise. | .isValid | Function | Returns true if the UUID was initialized with a valid value. | .toString | Function | This method returns a standard 36-character string representing the UUID, such as "3b12f1df-5232-4804-897e-917bf397618a". | ._nodeString | | | ._timestampAsDate | | | ._timestampAsHexString | | | ._uuidString | | | ._versionNumber | | |
|