@itwin/core-bentley
Advanced tools
Comparing version 4.10.0-dev.4 to 4.10.0-dev.6
@@ -184,2 +184,4 @@ /** @packageDocumentation | ||
constructor(ids?: Id64Arg); | ||
/** Return true if `this` and `other` contain the same set of Ids. */ | ||
equals(other: Uint32Set): boolean; | ||
/** Remove all contents of this set. */ | ||
@@ -186,0 +188,0 @@ clear(): void; |
@@ -431,2 +431,23 @@ "use strict"; | ||
} | ||
/** Return true if `this` and `other` contain the same set of Ids. */ | ||
equals(other) { | ||
if (this === other) { | ||
return true; | ||
} | ||
if (this.size !== other.size) { | ||
return false; | ||
} | ||
for (const [key, thisValue] of this._map) { | ||
const otherValue = other._map.get(key); | ||
if (!otherValue || thisValue.size !== otherValue.size) { | ||
return false; | ||
} | ||
for (const value of thisValue) { | ||
if (!otherValue.has(value)) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
/** Remove all contents of this set. */ | ||
@@ -433,0 +454,0 @@ clear() { |
@@ -184,2 +184,4 @@ /** @packageDocumentation | ||
constructor(ids?: Id64Arg); | ||
/** Return true if `this` and `other` contain the same set of Ids. */ | ||
equals(other: Uint32Set): boolean; | ||
/** Remove all contents of this set. */ | ||
@@ -186,0 +188,0 @@ clear(): void; |
@@ -428,2 +428,23 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
/** Return true if `this` and `other` contain the same set of Ids. */ | ||
equals(other) { | ||
if (this === other) { | ||
return true; | ||
} | ||
if (this.size !== other.size) { | ||
return false; | ||
} | ||
for (const [key, thisValue] of this._map) { | ||
const otherValue = other._map.get(key); | ||
if (!otherValue || thisValue.size !== otherValue.size) { | ||
return false; | ||
} | ||
for (const value of thisValue) { | ||
if (!otherValue.has(value)) { | ||
return false; | ||
} | ||
} | ||
} | ||
return true; | ||
} | ||
/** Remove all contents of this set. */ | ||
@@ -430,0 +451,0 @@ clear() { |
{ | ||
"name": "@itwin/core-bentley", | ||
"version": "4.10.0-dev.4", | ||
"version": "4.10.0-dev.6", | ||
"description": "Bentley JavaScript core components", | ||
@@ -38,3 +38,3 @@ "main": "lib/cjs/core-bentley.js", | ||
"typescript": "~5.3.3", | ||
"@itwin/build-tools": "4.10.0-dev.4" | ||
"@itwin/build-tools": "4.10.0-dev.6" | ||
}, | ||
@@ -41,0 +41,0 @@ "nyc": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2052444
18858