Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICompare<T>

Generic interface to compare value types.

Type parameters

  • T

Hierarchy

  • ICompare

Index

Methods

Methods

compare

  • compare(x: T): number
  • Compares this value with given value x. MUST follow same contract as Comparator.

    remarks

    MUST return 0 if the type also implements IEquiv and equiv returns true for same x.

    Also see IHash.

    Parameters

    • x: T

      compare value

    Returns number

Generated using TypeDoc