export interface Hashable { hashCode(): number } export class Entry { hash: number key: K value: V constructor(key: K, value: V) { this.hash = key.hashCode() this.key = key this.value = value } }