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

Method equals

lib/token.js:255–262  ·  view source on GitHub ↗

* Determines if the input range is equivalent to this one. * * @param {TokenRange} other Range to compare with. * @returns {boolean} Whether or not the ranges are equal.

(other)

Source from the content-addressed store, hash-verified

253 * @returns {boolean} Whether or not the ranges are equal.
254 */
255 equals(other) {
256 if (other === this) {
257 return true;
258 } else if (other instanceof TokenRange) {
259 return this.compare(other) === 0;
260 }
261 return false;
262 }
263
264 /**
265 * Returns 0 if the values are equal, otherwise compares against

Callers

nothing calls this directly

Calls 1

compareMethod · 0.95

Tested by

no test coverage detected