Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImmutableInt<T>

A type that is passed another IntType to reference and will not allow mutations to it.

todo

Maybe it would be best to use a proxy? Unsure of how in TS...

Type parameters

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Protected Readonly original

original: T

Accessors

i

  • get i(): T

js_int

  • get js_int(): number

Methods

add

  • add(): T

assign

  • assign(): T

cmp

copy

  • copy(): T

eq

  • eq(n: T | number): boolean
  • Parameters

    • n: T | number

    Returns boolean

    True if this object is equal to the one provided.

gt

  • gt(n: T | number): boolean
  • Parameters

    • n: T | number

    Returns boolean

    True if this object is greater than the one provided.

gteq

  • gteq(n: T | number): boolean
  • Parameters

    • n: T | number

    Returns boolean

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

lt

  • lt(n: T | number): boolean
  • Parameters

    • n: T | number

    Returns boolean

    True if this object is less than the one provided.

lteq

  • lteq(n: T | number): boolean
  • Parameters

    • n: T | number

    Returns boolean

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

sub

  • sub(): T

toJSON

  • toJSON(): any

toString

  • toString(): string

Generated using TypeDoc