Interface CollectionOperator<V, I>

interface CollectionOperator<V, I> {
    add(value: V, collection: I): boolean;
    clone(collection: I): I;
    create(): I;
    delete(value: V, collection: I): boolean;
    has(value: V, collection: I): boolean;
    size(collection: I): number;
}

Type Parameters

  • V
  • I

Methods

  • Parameters

    • value: V
    • collection: I

    Returns boolean

  • Parameters

    • collection: I

    Returns I

  • Returns I

  • Parameters

    • value: V
    • collection: I

    Returns boolean

  • Parameters

    • value: V
    • collection: I

    Returns boolean

  • Parameters

    • collection: I

    Returns number