Class Hash

Index

Properties

Methods

Properties

private static FNV_BASE: any

private static FNV_PRIME: any

private static primes: any

Methods

public static combine(value: number, currentHash: number): number

Parameters

  • value: number
  • currentHash: number

Returns

number

private static computeFnv1aCharArrayHashCode(text: any, start: any, len: any): any

Parameters

  • text: any
  • start: any
  • len: any

Returns

any

public static computeMurmur2StringHashCode(key: string, seed: number): number

Parameters

  • key: string
  • seed: number

Returns

number

public static computeSimple31BitCharArrayHashCode(key: Array<number>, start: number, len: number): number

Parameters

  • key: Array<number>
  • start: number
  • len: number

Returns

number

public static computeSimple31BitStringHashCode(key: string): number

Parameters

  • key: string

Returns

number

public static expandPrime(oldSize: number): number

Parameters

  • oldSize: number

Returns

number

public static getPrime(min: number): number

Parameters

  • min: number

Returns

number