Interface IPropertyCollection

This is the property collection interface.

interface IPropertyCollection {
    add(...args: any[]): number;
    contains(...args: any[]): boolean;
    indexOf(...args: any[]): number;
    indexToKey(idx: number): any;
    remove(...args: any[]): number;
}

Hierarchy (view full)

Implemented by

Methods

  • Add an element to the collection.

    Parameters

    • Rest...args: any[]

      Factors to add

    Returns number

    Index of added elements

  • Verify that the element exists in the collection.

    Parameters

    • Rest...args: any[]

      factors to check

    Returns boolean

    True if element exists, false otherwise

  • Look up an element in the collection.

    Parameters

    • Rest...args: any[]

      Factors to look up Index of

    Returns number

    element. If element does not exist -1

  • Verify that the property key exists.

    Parameters

    • idx: number

      Index of properties to check

    Returns any

    Property key is true if it exists, false if it does not exist

  • Remove an element from the collection.

    Parameters

    • Rest...args: any[]

      Elements to be removed

    Returns number

    Index of the element I did. If the element does not exist -1