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