import { IgCollection } from "igniteui-webcomponents-core";
import { markType } from "igniteui-webcomponents-core";
import { SyncableObservableCollection$2 } from "igniteui-webcomponents-core";
import { ColumnPropertySetter as ColumnPropertySetter_internal } from './ColumnPropertySetter';
import { IgcColumnPropertySetter as IgcColumnPropertySetter } from './igc-column-property-setter';
export class IgcColumnPropertySettersCollection extends IgCollection {
    constructor(list) {
        super();
        if (!IgcColumnPropertySetter.$type) {
            IgcColumnPropertySetter.$type = markType(IgcColumnPropertySetter, "IgcColumnPropertySetter");
        }
        if (list) {
            for (let i = 0; i < list.length; i++) {
                this.add(list[i]);
            }
        }
    }
    _createInnerColl() {
        if (!IgcColumnPropertySetter.$type) {
            IgcColumnPropertySetter.$type = markType(IgcColumnPropertySetter, "IgcColumnPropertySetter");
        }
        let coll = new SyncableObservableCollection$2(IgcColumnPropertySetter.$type, ColumnPropertySetter_internal.$type, 0);
        coll.compare = (ext, int) => {
            let comp = ext;
            if (comp._implementation) {
                comp = comp._implementation;
            }
            if (comp.equals) {
                return comp.equals(int);
            }
            return comp === int;
        };
        coll.createTo = (ext) => {
            return ext._implementation;
        };
        coll.createFrom = (int) => {
            let ext = int.externalObject;
            if (!ext) {
                ext = new IgcColumnPropertySetter();
                if (ext) {
                    ext._implementation = int;
                }
            }
            return ext;
        };
        return coll;
    }
}
//# sourceMappingURL=igc-column-property-setters-collection.js.map
