export default class HashCode {
    static fromString(text) {
        let hash = 0;
        for (let i = 0; i < text.length; i++) {
            const code = text.charCodeAt(i);
            hash = (hash << 5) - hash + code;
            hash = hash & hash; // Convert to 32bit integer
        }
        return hash;
    }
}
//# sourceMappingURL=HashCode.js.map