Options
All
  • Public
  • Public/Protected
  • All
Menu

  subscribe now with sterfive to access the online-user manual

Hierarchy

  • NumericRange

Implements

  • NumericalRange1

Index

Constructors

constructor

  • new NumericRange(value?: string | number | number[], secondValue?: number): NumericRange
  • Parameters

    • Optional value: string | number | number[]
    • Optional secondValue: number

    Returns NumericRange

Properties

type

type: NumericRangeType

value

value: NumericalRangeValueType

Static NumericRangeType

NumericRangeType: typeof NumericRangeType

Static coerce

coerce: (value: any | string | NumericRange | null | number[]) => NumericRange

Type declaration

Readonly Static empty

empty: NumericalRange0

Static schema

schema: { coerce: (value: any | string | NumericRange | null | number[]) => NumericRange; decode: (stream: BinaryStream, _value?: NumericRange) => NumericRange; defaultValue: () => NumericRange; encode: (numericRange: NumericRange, stream: OutputBinaryStream) => void; name: string; random: () => NumericRange; subType: string }

Type declaration

Methods

extract_values

  • extract_values<U, T>(array: T, dimensions?: number[]): ExtractResult<T>
  • method

    extract_values

    Type parameters

    • U

    • T: ArrayLike<U, T>

    Parameters

    • array: T

      flat array containing values or string

    • Optional dimensions: number[]

    Returns ExtractResult<T>

isDefined

  • isDefined(): boolean
  • Returns boolean

isEmpty

  • isEmpty(): boolean
  • Returns boolean

isValid

  • isValid(): boolean
  • Returns boolean

set_values

  • set_values(arrayToAlter: Buffer | [], newValues: Buffer | []): { array: any; statusCode: ConstantStatusCode }
  • Parameters

    • arrayToAlter: Buffer | []
    • newValues: Buffer | []

    Returns { array: any; statusCode: ConstantStatusCode }

toEncodeableString

  • toEncodeableString(): string
  • Returns string

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string

Static overlap

  • overlap(nr1?: NumericalRange0, nr2?: NumericalRange0): boolean
  • Parameters

    • Optional nr1: NumericalRange0
    • Optional nr2: NumericalRange0

    Returns boolean

Generated using TypeDoc