/*
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 { SyncableObservableCollection$1 } from "./SyncableObservableCollection$1";
import { SortDescription } from "./SortDescription";
import { Base, markType } from "./type";
var SortDescriptionCollection = /** @class */ (function (_super) {
    tslib_1.__extends(SortDescriptionCollection, _super);
    function SortDescriptionCollection() {
        var _this = _super.call(this) || this;
        _this.d = null;
        _this.f = null;
        _this.f = new SyncableObservableCollection$1(SortDescription.$);
        return _this;
    }
    SortDescriptionCollection.prototype.g = function () {
        return this.f;
    };
    Object.defineProperty(SortDescriptionCollection.prototype, "e", {
        get: function () {
            return this.d;
        },
        set: function (a) {
            if (a == null) {
                this.f.syncTarget = null;
                this.d = null;
                return;
            }
            this.d = a;
            this.f.syncTarget = this.d.f;
        },
        enumerable: true,
        configurable: true
    });
    SortDescriptionCollection.prototype.h = function (a) {
        return this.f.add(a);
    };
    SortDescriptionCollection.prototype.o = function (a, b) {
        this.f.add1(a, b);
    };
    SortDescriptionCollection.prototype.n = function () {
        this.f.clear();
    };
    SortDescriptionCollection.prototype.a = function (a) {
        return this.f.get(a);
    };
    SortDescriptionCollection.prototype.k = function (a) {
        return this.f.indexOf(a);
    };
    SortDescriptionCollection.prototype.i = function (a) {
        return this.f.remove1(a);
    };
    SortDescriptionCollection.prototype.b = function (a) {
        return this.f.remove(a);
    };
    SortDescriptionCollection.prototype.c = function (a, b) {
        return this.f.set(a, b);
    };
    SortDescriptionCollection.prototype.l = function () {
        return this.f.size();
    };
    SortDescriptionCollection.prototype.m = function (a) {
        this.f.addListener(a);
    };
    SortDescriptionCollection.prototype.p = function (a) {
        this.f.removeListener(a);
    };
    Object.defineProperty(SortDescriptionCollection.prototype, "j", {
        get: function () {
            return this.f.all;
        },
        enumerable: true,
        configurable: true
    });
    SortDescriptionCollection.$t = markType(SortDescriptionCollection, 'SortDescriptionCollection');
    return SortDescriptionCollection;
}(Base));
export { SortDescriptionCollection };
//# sourceMappingURL=SortDescriptionCollection.js.map