Class Collection<T>Abstract

Abstract class which represents a collection of items

Type Parameters

Hierarchy (view full)

Implements

  • Iterable<T>

Constructors

Properties

Accessors

Methods

Constructors

Properties

Type for child item initialization

innerItems: any[]

List of inner items

lib: PKCS11

PKCS#11 module

Accessors

Methods

  • A method that returns the default iterator for an object. Called by the semantics of the for-of statement.

    Returns {
        next(): IteratorResult<T, any>;
    }

  • Returns the index of the first occurrence of a value in an array.

    Parameters

    • obj: T

      The value to locate in the array.

    • fromIndex: number = 0

      The array index at which to begin the search.

    Returns number

    Remarks

    If fromIndex is omitted, the search starts at index 0.

  • Returns item from collection by index

    Parameters

    • index: number

      Index of element in the collection [0..n]

    Returns T

    Child item

Generated using TypeDoc