/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { ObservableCollection$1 } from "igniteui-react-core/ES2015/ObservableCollection$1";
import { Number_$type, markType } from "igniteui-react-core/ES2015/type";
/**
 * @hidden
 */
export class IndexCollection extends ObservableCollection$1 {
    constructor() {
        super(Number_$type, 0);
    }
    r(a, b) {
        if (!this.contains(b)) {
            super.r(a, b);
        }
    }
    x(a, b) {
        if (this.contains(b)) {
            this.remove(b);
            this.r(a, b);
        }
        else {
            super.x(a, b);
        }
    }
}
IndexCollection.$t = markType(IndexCollection, 'IndexCollection', ObservableCollection$1.$.specialize(Number_$type));
