Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ComparableTypeRange<T>

A subclass of TypeRange that automatically creates a compare function if T is of type Comparable.

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

bounds

bounds: RangeBounds

The inclusivity bounds to use

Readonly cf

A compare function that is used to compare two T

Optional max

max: T

The maximum value

Optional min

min: T

The minimum value

Accessors

def_max

  • get def_max(): boolean

def_min

  • get def_min(): boolean

undef_max

  • get undef_max(): boolean

undef_min

  • get undef_min(): boolean

Methods

bound_def

bound_undef

compareEndpoints

contains

  • contains(t: T): boolean

doesContainInRange

  • doesContainInRange(r: TypeRange<T>): boolean

getRangeSection

mayContainInRange

  • mayContainInRange(r: TypeRange<T>): boolean

toString

  • toString(): string

Static all

Static gt

Static gteq

Static lt

Static lteq

Generated using TypeDoc