Home Manual Reference Source Test
public class | source

QueryRange

QueryRange represents a LIMIT + OFFSET pair and provides high-level methods for comparing, copying and joining ranges. It also provides syntax sugar around infinity (the absence of a defined LIMIT or OFFSET).

Static Method Summary

Static Public Methods
public static

infinite(): *

public static

rangeWithUnion(a: *, b: *): *

public static

rangesBySubtracting(a: *, b: *): *

Constructor Summary

Public Constructor
public

constructor(objectPattern: {"limit": *, "offset": *, "start": *, "end": *})

Member Summary

Public Members
public get

end: *

public

limit: *

public

offset: *

public get

start: *

Method Summary

Public Methods
public

clone(): *

public

isContiguousWith(b: *): *

public

isEqual(b: *): *

public

isInfinite(): *

public

Static Public Methods

public static infinite(): * source

Return:

*

public static rangeWithUnion(a: *, b: *): * source

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

public static rangesBySubtracting(a: *, b: *): * source

Params:

NameTypeAttributeDescription
a *
b *

Return:

*

Public Constructors

public constructor(objectPattern: {"limit": *, "offset": *, "start": *, "end": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"limit": *, "offset": *, "start": *, "end": *}
  • optional
  • default: {}

Public Members

public get end: * source

public limit: * source

public offset: * source

public get start: * source

Public Methods

public clone(): * source

Return:

*

public isContiguousWith(b: *): * source

Params:

NameTypeAttributeDescription
b *

Return:

*

public isEqual(b: *): * source

Params:

NameTypeAttributeDescription
b *

Return:

*

public isInfinite(): * source

Return:

*

public toString(): string source

Return:

string