An Ordering that indicates an "equal" comparison result.

Hierarchy

Properties

kind: EQUAL = Kind.EQUAL

The property that discriminates Ordering.

singleton: Equal = ...

The singleton instance of Equal.

Remarks

The equal constant is a more accessible alias for this object.

Methods

  • Compare this and that Ordering to determine their ordering.

    Parameters

    Returns Ordering

    Remarks

    When ordered, Less compares as less than Equal which compares as less than Greater.

  • Compare this and that Ordering to determine their equality.

    Parameters

    Returns boolean

    Remarks

    Two Ordering are equal if they are the same variant.

  • Convert this Ordering to a number.

    Parameters

    Returns 0 | 1 | -1

    Remarks

    • If this is Less, return -1.
    • If this is Greater, return 1.
    • If this is Equal, return 0.

Generated using TypeDoc