ICollection

Interface ICollection

interface ICollection {
    clear(): void;
    copy(other: ICollection): void;
    forNodes(callback: (nodeID: number) => Promise<any>): Promise<any>;
    forRootNodes(callback: (nodeID: number) => Promise<any>): Promise<any>;
    getNodeCount(): number;
}

Methods

  • Removes all elements from a collection without deleting the collection itself.

    Returns void

  • Creates a copy of a given collection.

    Parameters

    Returns void

  • Applies a callback on all elements of a collection.

    Parameters

    • callback: (nodeID: number) => Promise<any>

      The callback function.

    Returns Promise<any>

  • Applies a callback on all root node elements of a collection.

    Parameters

    • callback: (nodeID: number) => Promise<any>

      The callback function.

    Returns Promise<any>

  • Returns number

    The number of elements inside a collection.


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: