Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IceServerCollection

An ICE server collection.

Hierarchy

  • Collection<IceServer, IceServerCollection>
    • IceServerCollection

Index

Constructors

constructor

Methods

add

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

    Parameters

    • value: IceServer

      The value.

    Returns boolean

addMany

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

    Parameters

    • values: IceServer[]

      The values.

    Returns boolean

Protected addSuccess

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

    Parameters

    • value: IceServer

      The value.

    Returns void

any

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

    Parameters

    • predicate: IFunction1<IceServer, boolean>

      The predicate.

    Returns boolean

  • Determined whether the collection contains at least one value.

    Returns boolean

Protected arrayFromList

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

    Parameters

    • list: Array<IceServer>

      The list.

    Returns IceServer[]

contains

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

    Parameters

    • value: IceServer

      The value.

    Returns boolean

Protected createCollection

  • createCollection(): IceServerCollection
  • Creates a collection.

    Returns IceServerCollection

first

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

    Parameters

    • predicate: IFunction1<IceServer, boolean>

      The predicate.

    Returns IceServer

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

    Returns IceServer

firstOrDefault

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

    Returns IceServer

  • 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<IceServer, boolean>

      The predicate.

    Returns IceServer

forEach

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

    Parameters

    • callback: IAction2<IceServer, number>

      The callback to execute.

    Returns void

getCount

  • getCount(): number
  • Gets the count.

    Returns number

getTypeString

  • getTypeString(): string

getValue

  • getValue(): IceServer
  • Gets the value.

    Returns IceServer

getValues

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

    Returns IceServer[]

last

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

    Parameters

    • predicate: IFunction1<IceServer, boolean>

      The predicate.

    Returns IceServer

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

    Returns IceServer

lastOrDefault

  • lastOrDefault(predicate: IFunction1<IceServer, boolean>): IceServer
  • lastOrDefault(): IceServer
  • 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<IceServer, boolean>

      The predicate.

    Returns IceServer

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

    Returns IceServer

remove

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

    Parameters

    • value: IceServer

      The value.

    Returns boolean

removeAll

  • removeAll(): void
  • Removes all values.

    Returns void

removeFirst

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

    Parameters

    • condition: IFunction1<IceServer, boolean>

    Returns IceServer

  • Removes the first value.

    Returns IceServer

removeLast

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

    Returns IceServer

  • Removes the last value that matches a given condition.

    Parameters

    • condition: IFunction1<IceServer, boolean>

    Returns IceServer

removeMany

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

    Parameters

    • values: IceServer[]

      The values.

    Returns boolean

Protected removeSuccess

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

    Parameters

    • value: IceServer

      The value.

    Returns void

replace

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

    Parameters

    • values: IceServer[]

      The values.

    Returns void

setValue

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

    Parameters

    • value: IceServer

    Returns void

setValues

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

    Parameters

    • value: IceServer[]

    Returns void

single

  • single(predicate: IFunction1<IceServer, boolean>): IceServer
  • single(): IceServer
  • 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<IceServer, boolean>

    Returns IceServer

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

    Returns IceServer

singleOrDefault

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

    Returns IceServer

  • 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<IceServer, boolean>

    Returns IceServer

valueAt

  • valueAt(index: number): IceServer
  • 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 IceServer

valueAtOrDefault

  • valueAtOrDefault(index: number): IceServer
  • 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 IceServer

where

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

    Parameters

    • predicate: IFunction2<IceServer, number, boolean>

      The predicate.

    Returns IceServerCollection