/*
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 { ValueType, markStruct } from "igniteui-angular-core";
import { stringFormat } from "igniteui-angular-core";
/**
 * @hidden
 */
var SortedIntRangeList_IntRange = /** @class */ (function (_super) {
    tslib_1.__extends(SortedIntRangeList_IntRange, _super);
    function SortedIntRangeList_IntRange(a) {
        var _rest = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            _rest[_i - 1] = arguments[_i];
        }
        var _this = _super.call(this) || this;
        _this.c = 0;
        _this.b = 0;
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    var c = _rest[0];
                    var d = _rest[1];
                    _this.c = c;
                    _this.b = d;
                }
                break;
        }
        return _this;
    }
    Object.defineProperty(SortedIntRangeList_IntRange.prototype, "a", {
        get: function () {
            return this.b - this.c + 1;
        },
        enumerable: true,
        configurable: true
    });
    SortedIntRangeList_IntRange.prototype.toString = function () {
        return stringFormat("{0}-{1}", this.c, this.b);
    };
    SortedIntRangeList_IntRange.$t = markStruct(SortedIntRangeList_IntRange, 'SortedIntRangeList_IntRange');
    return SortedIntRangeList_IntRange;
}(ValueType));
export { SortedIntRangeList_IntRange };
//# sourceMappingURL=SortedIntRangeList_IntRange.js.map