Replace hashCode with checksum
Hash codes are not collision free, so what we actually need is a checksum.
This commit is contained in:
22
src/ol/structs/checksum.js
Normal file
22
src/ol/structs/checksum.js
Normal file
@@ -0,0 +1,22 @@
|
||||
goog.provide('ol.structs.IHasChecksum');
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {string}
|
||||
*/
|
||||
ol.structs.Checksum;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
ol.structs.IHasChecksum = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {string} The checksum.
|
||||
*/
|
||||
ol.structs.IHasChecksum.prototype.getChecksum = function() {
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
goog.provide('ol.structs.IHashable');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
ol.structs.IHashable = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @return {number} The hash code.
|
||||
*/
|
||||
ol.structs.IHashable.prototype.hashCode = function() {
|
||||
};
|
||||
Reference in New Issue
Block a user