/*
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 { ValueType, markStruct } from "igniteui-angular-core";
import { stringFormat } from "igniteui-angular-core";
/**
 * @hidden
 */
export class SortedIntRangeList_IntRange extends ValueType {
    constructor(a, ..._rest) {
        super();
        this.c = 0;
        this.b = 0;
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    let c = _rest[0];
                    let d = _rest[1];
                    this.c = c;
                    this.b = d;
                }
                break;
        }
    }
    get a() {
        return this.b - this.c + 1;
    }
    toString() {
        return stringFormat("{0}-{1}", this.c, this.b);
    }
}
SortedIntRangeList_IntRange.$t = markStruct(SortedIntRangeList_IntRange, 'SortedIntRangeList_IntRange');
//# sourceMappingURL=SortedIntRangeList_IntRange.js.map