An Ordering that indicates a "greater than" comparison result.

Hierarchy

Properties

kind: GREATER = Kind.GREATER

The property that discriminates Ordering.

singleton: Greater = ...

The singleton instance of Greater.

Remarks

The greater 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