Class HitStatistics

A special case of a map structure for storing hit statistics.

Hierarchy

Constructors

Methods

Constructors

  • Parameters

    • Optional entries: null | readonly (readonly [HitResult, number])[]

    Returns HitStatistics

  • Parameters

    • Optional iterable: null | Iterable<readonly [HitResult, number]>

    Returns HitStatistics

Methods

  • Gets the number of hit results by their type. If hit result is not present sets it to default value and returns it.

    Parameters

    Returns number

    The number of hit results of this type.