Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Comparable<T>

A utility abstract class with no implementation for the function cmp and implementations for gt, gteq, eq, lteq, and lt functions.

Type parameters

  • T

    The other type that can be compared.

Hierarchy

Index

Methods

Methods

Abstract cmp

eq

  • eq(n: T): boolean
  • Parameters

    • n: T

    Returns boolean

    True if this object is equal to the one provided.

gt

  • gt(n: T): boolean
  • Parameters

    • n: T

    Returns boolean

    True if this object is greater than the one provided.

gteq

  • gteq(n: T): boolean
  • Parameters

    • n: T

    Returns boolean

    True if this object is greater than or equal to the one provided.

lt

  • lt(n: T): boolean
  • Parameters

    • n: T

    Returns boolean

    True if this object is less than the one provided.

lteq

  • lteq(n: T): boolean
  • Parameters

    • n: T

    Returns boolean

    True if this object is less than or equal to the one provided.

Generated using TypeDoc