/*
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, Base, toNullable, typeCast, Number_$type, markStruct } from "igniteui-angular-core";
import { ST_Coordinate32Unqualified } from "./ST_Coordinate32Unqualified";
import { DocCoreUtils } from "./DocCoreUtils";
/**
 * @hidden
 */
var ST_LineWidth = /** @class */ (function (_super) {
    tslib_1.__extends(ST_LineWidth, _super);
    function ST_LineWidth(a) {
        var _rest = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            _rest[_i - 1] = arguments[_i];
        }
        var _this = _super.call(this) || this;
        _this.a = new ST_Coordinate32Unqualified();
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    var c = _rest[0];
                    DocCoreUtils.av(ST_LineWidth.$, ST_Coordinate32Unqualified.e(c), "value", 0, 20116800);
                    _this.a = c;
                }
                break;
        }
        return _this;
    }
    ST_LineWidth.prototype.equals = function (a) {
        var b = toNullable(ST_LineWidth.$, typeCast(ST_LineWidth.$, a));
        if (ST_LineWidth.j(b, toNullable(ST_LineWidth.$, null))) {
            return false;
        }
        return ST_LineWidth.g(this, b.getValueOrDefault());
    };
    ST_LineWidth.prototype.getHashCode = function () {
        return Base.getHashCodeStatic(this.a);
    };
    ST_LineWidth.prototype.toString = function () {
        return this.a.toString();
    };
    ST_LineWidth.f = function (a) {
        var b = ST_LineWidth.t(a);
        if (ST_LineWidth.j(b, toNullable(ST_LineWidth.$, null))) {
            return b.getValueOrDefault();
        }
        throw DocCoreUtils.n(ST_LineWidth.$, a);
    };
    ST_LineWidth.t = function (a) {
        return ST_LineWidth.s(ST_Coordinate32Unqualified.j(a));
    };
    ST_LineWidth.g = function (a, b) {
        return ST_Coordinate32Unqualified.e(a.a) == ST_Coordinate32Unqualified.e(b.a);
    };
    ST_LineWidth.h = function (a, b) {
        if (!a.hasValue) {
            return !b.hasValue;
        }
        else if (!b.hasValue) {
            return false;
        }
        return ST_LineWidth.g(a.value, b.value);
    };
    ST_LineWidth.i = function (a, b) {
        return !(ST_LineWidth.g(a, b));
    };
    ST_LineWidth.j = function (a, b) {
        if (!a.hasValue) {
            return b.hasValue;
        }
        else if (!b.hasValue) {
            return true;
        }
        return ST_LineWidth.i(a.value, b.value);
    };
    ST_LineWidth.d = function (a) {
        return new ST_LineWidth(1, a);
    };
    ST_LineWidth.s = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_LineWidth.$, null);
        }
        return toNullable(ST_LineWidth.$, ST_LineWidth.d(a.value));
    };
    ST_LineWidth.b = function (a) {
        return a.a;
    };
    ST_LineWidth.r = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_Coordinate32Unqualified.$, null);
        }
        return toNullable(ST_Coordinate32Unqualified.$, ST_LineWidth.b(a.value));
    };
    ST_LineWidth.m = function (a) {
        return ST_Coordinate32Unqualified.e(a.a);
    };
    ST_LineWidth.q = function (a) {
        if (!a.hasValue) {
            return toNullable(Number_$type, null);
        }
        return toNullable(Number_$type, ST_LineWidth.m(a.value));
    };
    ST_LineWidth.$t = markStruct(ST_LineWidth, 'ST_LineWidth');
    return ST_LineWidth;
}(ValueType));
export { ST_LineWidth };
//# sourceMappingURL=ST_LineWidth.js.map