Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataChannelCollection

A collection of data channels.

Hierarchy

  • Collection<DataChannel, DataChannelCollection>
    • DataChannelCollection

Index

Constructors

constructor

Methods

add

  • add(value: DataChannel): boolean
  • Adds a value.

    Parameters

    • value: DataChannel

      The value.

    Returns boolean

addMany

  • addMany(values: DataChannel[]): boolean
  • Adds some values.

    Parameters

    • values: DataChannel[]

      The values.

    Returns boolean

Protected addSuccess

  • addSuccess(value: DataChannel): void
  • Invoked when an element is added to the collection.

    Parameters

    • value: DataChannel

      The value.

    Returns void

any

  • any(predicate: IFunction1<DataChannel, boolean>): boolean
  • any(): boolean
  • Determined whether the collection contains at least one value that matches the specified predicate.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

      The predicate.

    Returns boolean

  • Determined whether the collection contains at least one value.

    Returns boolean

Protected arrayFromList

  • arrayFromList(list: Array<DataChannel>): DataChannel[]
  • Creates an array from a list.

    Parameters

    • list: Array<DataChannel>

      The list.

    Returns DataChannel[]

contains

  • contains(value: DataChannel): boolean
  • Determines whether the collection contains a value.

    Parameters

    • value: DataChannel

      The value.

    Returns boolean

Protected createCollection

  • createCollection(): DataChannelCollection
  • Creates a collection.

    Returns DataChannelCollection

first

  • first(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • first(): DataChannel
  • Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

      The predicate.

    Returns DataChannel

  • Gets the first value. Throws an exception if there are no values in the collection.

    Returns DataChannel

firstOrDefault

  • firstOrDefault(): DataChannel
  • firstOrDefault(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • Gets the first value. Returns a default value if there are no values in the collection.

    Returns DataChannel

  • Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

      The predicate.

    Returns DataChannel

forEach

  • forEach(callback: IAction2<DataChannel, number>): void
  • Executes a callback function once per value.

    Parameters

    • callback: IAction2<DataChannel, number>

      The callback to execute.

    Returns void

getCount

  • getCount(): number
  • Gets the count.

    Returns number

getTypeString

  • getTypeString(): string

getValue

  • getValue(): DataChannel
  • Gets the value.

    Returns DataChannel

getValues

  • getValues(): DataChannel[]
  • Gets the values.

    Returns DataChannel[]

last

  • last(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • last(): DataChannel
  • Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

      The predicate.

    Returns DataChannel

  • Gets the last value. Throws an exception if there are no values in the collection.

    Returns DataChannel

lastOrDefault

  • lastOrDefault(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • lastOrDefault(): DataChannel
  • Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

      The predicate.

    Returns DataChannel

  • Gets the last value. Returns a default value if there are no values in the collection.

    Returns DataChannel

remove

  • remove(value: DataChannel): boolean
  • Removes a value.

    Parameters

    • value: DataChannel

      The value.

    Returns boolean

removeAll

  • removeAll(): void
  • Removes all values.

    Returns void

removeFirst

  • removeFirst(condition: IFunction1<DataChannel, boolean>): DataChannel
  • removeFirst(): DataChannel
  • Removes the first value that matches a given condition.

    Parameters

    • condition: IFunction1<DataChannel, boolean>

    Returns DataChannel

  • Removes the first value.

    Returns DataChannel

removeLast

  • removeLast(): DataChannel
  • removeLast(condition: IFunction1<DataChannel, boolean>): DataChannel
  • Removes the last value.

    Returns DataChannel

  • Removes the last value that matches a given condition.

    Parameters

    • condition: IFunction1<DataChannel, boolean>

    Returns DataChannel

removeMany

  • removeMany(values: DataChannel[]): boolean
  • Removes some values.

    Parameters

    • values: DataChannel[]

      The values.

    Returns boolean

Protected removeSuccess

  • removeSuccess(value: DataChannel): void
  • Invoked when an element is removed from the collection.

    Parameters

    • value: DataChannel

      The value.

    Returns void

replace

  • replace(values: DataChannel[]): void
  • Replaces the collection with a new set of values.

    Parameters

    • values: DataChannel[]

      The values.

    Returns void

setValue

  • setValue(value: DataChannel): void
  • Sets the value.

    Parameters

    • value: DataChannel

    Returns void

setValues

  • setValues(value: DataChannel[]): void
  • Sets the values.

    Parameters

    • value: DataChannel[]

    Returns void

single

  • single(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • single(): DataChannel
  • Gets the only value that matches the specified predicate. Throws an exception if there are no values or more than one value in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

    Returns DataChannel

  • Gets the only value. Throws an exception if there are no values or more than one value in the collection.

    Returns DataChannel

singleOrDefault

  • singleOrDefault(): DataChannel
  • singleOrDefault(predicate: IFunction1<DataChannel, boolean>): DataChannel
  • Gets the only value. Returns a default value if there are no values or more than one value in the collection.

    Returns DataChannel

  • Gets the only value that matches the specified predicate. Returns a default value if there are no values or more than one value in the collection.

    Parameters

    • predicate: IFunction1<DataChannel, boolean>

    Returns DataChannel

valueAt

  • valueAt(index: number): DataChannel
  • Gets the value at the specified index. Throws an exception if a value does not exist at that index.

    Parameters

    • index: number

      The index.

    Returns DataChannel

valueAtOrDefault

  • valueAtOrDefault(index: number): DataChannel
  • Gets the value at the specified index. Returns a default value if a value does not exist at that index.

    Parameters

    • index: number

      The index.

    Returns DataChannel

where

  • where(predicate: IFunction2<DataChannel, number, boolean>): DataChannelCollection
  • Creates a new collection with values that match the specified predicate.

    Parameters

    • predicate: IFunction2<DataChannel, number, boolean>

      The predicate.

    Returns DataChannelCollection