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.

template

T The other type that can be compared.

Type parameters

  • T

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