import { __extends } from "tslib";
import { IgCollection } from "igniteui-angular-core";
import { SyncableObservableCollection$2 } from "igniteui-angular-core";
import { FinancialIndicatorType_$type } from './FinancialIndicatorType';
import { ensureEnum } from "igniteui-angular-core";
var IgxFinancialIndicatorTypeCollection = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(IgxFinancialIndicatorTypeCollection, _super);
    function IgxFinancialIndicatorTypeCollection(list) {
        var _this = _super.call(this) || this;
        if (list) {
            for (var i = 0; i < list.length; i++) {
                _this.add(list[i]);
            }
        }
        return _this;
    }
    IgxFinancialIndicatorTypeCollection.prototype._ensureOuter = function (item) {
        return ensureEnum(FinancialIndicatorType_$type, item);
    };
    IgxFinancialIndicatorTypeCollection.prototype._createInnerColl = function () {
        var coll = new SyncableObservableCollection$2(FinancialIndicatorType_$type, FinancialIndicatorType_$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 IgxFinancialIndicatorTypeCollection;
}(IgCollection));
export { IgxFinancialIndicatorTypeCollection };
//# sourceMappingURL=igx-financial-indicator-type-collection.js.map
