MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / compare

Method compare

lib/token.js:61–63  ·  view source on GitHub ↗

* Returns 0 if the values are equal, 1 if greater than other, -1 * otherwise. * * @param {Token} other * @returns {Number}

(other)

Source from the content-addressed store, hash-verified

59 * @returns {Number}
60 */
61 compare(other) {
62 return this._value.compare(other._value);
63 }
64
65 equals(other) {
66 return this.compare(other) === 0;

Callers 1

equalsMethod · 0.95

Calls 1

compareMethod · 0.65

Tested by

no test coverage detected