igniteui-angular-core
Version:
Ignite UI Angular Core logic used in multiple UI components.
45 lines (44 loc) • 1.86 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, typeCast, getBoxIfEnum, markType } from "./type";
/**
* @hidden
*/
var Tuple$2 = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(Tuple$2, _super);
function Tuple$2($t1, $t2, a, b) {
var _this = _super.call(this) || this;
_this.$t1 = null;
_this.$t2 = null;
_this.c = null;
_this.d = null;
_this.$t1 = $t1;
_this.$t2 = $t2;
_this.$type = _this.$type.specialize(_this.$t1, _this.$t2);
_this.c = a;
_this.d = b;
return _this;
}
Tuple$2.prototype.equals = function (a) {
var b = typeCast(Tuple$2.$.specialize(this.$t1, this.$t2), a);
return b != null && Base.equalsStatic(getBoxIfEnum(this.$t1, this.c), getBoxIfEnum(this.$t1, b.c)) && Base.equalsStatic(getBoxIfEnum(this.$t2, this.d), getBoxIfEnum(this.$t2, b.d));
};
Tuple$2.prototype.getHashCode = function () {
var a = 0;
if (getBoxIfEnum(this.$t1, this.c) != null) {
a = Base.getHashCodeStatic(this.c);
}
if (getBoxIfEnum(this.$t2, this.d) != null) {
a = a ^ Base.getHashCodeStatic(this.d) << 16;
}
return a;
};
Tuple$2.$t = markType(Tuple$2, 'Tuple$2');
return Tuple$2;
}(Base));
export { Tuple$2 };