igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
46 lines (45 loc) • 1.87 kB
JavaScript
/*
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 { __extends } from "tslib";
import { Base, markType } from "./type";
import { IRandomnessSource_$type } from "./IRandomnessSource";
import { Random } from "./Random";
import { DefaultRandomnessGenerator } from "./DefaultRandomnessGenerator";
/**
* @hidden
*/
var DefaultRandomnessSource = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(DefaultRandomnessSource, _super);
function DefaultRandomnessSource(a) {
var _rest = [];
for (var _i = 1; _i < arguments.length; _i++) {
_rest[_i - 1] = arguments[_i];
}
var _this = _super.call(this) || this;
_this.a = null;
a = (a == void 0) ? 0 : a;
switch (a) {
case 0: break;
case 1:
{
var c = _rest[0];
_this.a = c;
}
break;
}
return _this;
}
DefaultRandomnessSource.prototype.getGenerator = function (a) {
if (this.a == null) {
this.a = new Random(0);
}
return new DefaultRandomnessGenerator(this.a);
};
DefaultRandomnessSource.$t = markType(DefaultRandomnessSource, 'DefaultRandomnessSource', Base.$, [IRandomnessSource_$type]);
return DefaultRandomnessSource;
}(Base));
export { DefaultRandomnessSource };