/*
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, toNullable, Number_$type, markStruct } from "igniteui-angular-core";
import { DocCoreUtils } from "./DocCoreUtils";
import { CultureInfo } from "igniteui-angular-core";
import { parseInt64_2, tryParseInt64_2 } from "igniteui-angular-core";
/**
 * @hidden
 */
var ST_CoordinateUnqualified = /** @class */ (function (_super) {
    tslib_1.__extends(ST_CoordinateUnqualified, _super);
    function ST_CoordinateUnqualified(a) {
        var _rest = [];
        for (var _i = 1; _i < arguments.length; _i++) {
            _rest[_i - 1] = arguments[_i];
        }
        var _this = _super.call(this) || this;
        _this.e = 0;
        a = (a == void 0) ? 0 : a;
        switch (a) {
            case 0: break;
            case 1:
                {
                    var c = _rest[0];
                    _this.e = c;
                }
                break;
        }
        return _this;
    }
    ST_CoordinateUnqualified.prototype.f = function () {
        return this.e;
    };
    ST_CoordinateUnqualified.prototype.d = function () {
        return DocCoreUtils.i(this.e);
    };
    ST_CoordinateUnqualified.c = function (a) {
        return ST_CoordinateUnqualified.a(parseInt64_2(a, 7, CultureInfo.invariantCulture));
    };
    ST_CoordinateUnqualified.k = function (a) {
        var b;
        if (((function () { var c = tryParseInt64_2(a, 7, CultureInfo.invariantCulture, b); b = c.p3; return c.ret; })())) {
            return toNullable(ST_CoordinateUnqualified.$, ST_CoordinateUnqualified.a(b));
        }
        return toNullable(ST_CoordinateUnqualified.$, null);
    };
    ST_CoordinateUnqualified.prototype.toString = function () {
        return this.e.toString();
    };
    ST_CoordinateUnqualified.g = function (a) {
        return a.e;
    };
    ST_CoordinateUnqualified.i = function (a) {
        if (!a.hasValue) {
            return toNullable(Number_$type, null);
        }
        return toNullable(Number_$type, ST_CoordinateUnqualified.g(a.value));
    };
    ST_CoordinateUnqualified.a = function (a) {
        return new ST_CoordinateUnqualified(1, a);
    };
    ST_CoordinateUnqualified.j = function (a) {
        if (!a.hasValue) {
            return toNullable(ST_CoordinateUnqualified.$, null);
        }
        return toNullable(ST_CoordinateUnqualified.$, ST_CoordinateUnqualified.a(a.value));
    };
    ST_CoordinateUnqualified.$t = markStruct(ST_CoordinateUnqualified, 'ST_CoordinateUnqualified');
    return ST_CoordinateUnqualified;
}(ValueType));
export { ST_CoordinateUnqualified };
//# sourceMappingURL=ST_CoordinateUnqualified.js.map