/*
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 * as tslib_1 from "tslib";
import { ObservableCollection$1 } from "igniteui-react-core/ES5/ObservableCollection$1";
import { Number_$type, markType } from "igniteui-react-core/ES5/type";
var IndexCollection = /** @class */ (function (_super) {
    tslib_1.__extends(IndexCollection, _super);
    function IndexCollection() {
        return _super.call(this, Number_$type, 0) || this;
    }
    IndexCollection.prototype.r = function (a, b) {
        if (!this.contains(b)) {
            _super.prototype.r.call(this, a, b);
        }
    };
    IndexCollection.prototype.x = function (a, b) {
        if (this.contains(b)) {
            this.remove(b);
            this.r(a, b);
        }
        else {
            _super.prototype.x.call(this, a, b);
        }
    };
    IndexCollection.$t = markType(IndexCollection, 'IndexCollection', ObservableCollection$1.$.specialize(Number_$type));
    return IndexCollection;
}(ObservableCollection$1));
export { IndexCollection };
