import { __extends } from "tslib";
import { IgCollection } from "igniteui-angular-core";
import { SyncableObservableCollection$2 } from "igniteui-angular-core";
import { FinancialOverlayType_$type } from './FinancialOverlayType';
import { ensureEnum } from "igniteui-angular-core";
var IgxFinancialOverlayTypeCollection = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(IgxFinancialOverlayTypeCollection, _super);
    function IgxFinancialOverlayTypeCollection(list) {
        var _this = _super.call(this) || this;
        if (list) {
            for (var i = 0; i < list.length; i++) {
                _this.add(list[i]);
            }
        }
        return _this;
    }
    IgxFinancialOverlayTypeCollection.prototype._ensureOuter = function (item) {
        return ensureEnum(FinancialOverlayType_$type, item);
    };
    IgxFinancialOverlayTypeCollection.prototype._createInnerColl = function () {
        var coll = new SyncableObservableCollection$2(FinancialOverlayType_$type, FinancialOverlayType_$type, 0);
        coll.compare = function (ext, int) {
            var comp = ext;
            if (comp.equals) {
                return comp.equals(int);
            }
            return comp === int;
        };
        coll.createTo = function (ext) {
            return ext;
        };
        coll.createFrom = function (int) {
            return int;
        };
        return coll;
    };
    return IgxFinancialOverlayTypeCollection;
}(IgCollection));
export { IgxFinancialOverlayTypeCollection };
//# sourceMappingURL=igx-financial-overlay-type-collection.js.map
