UNPKG

igniteui-react-core

Version:
43 lines (42 loc) 1.73 kB
/* 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 { Base, typeCast, getBoxIfEnum, markType } from "./type"; /** * @hidden */ export let Tuple$2 = /*@__PURE__*/ (() => { class Tuple$2 extends Base { constructor($t1, $t2, a, b) { super(); 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; } equals(a) { let 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)); } getHashCode() { let 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 = /*@__PURE__*/ markType(Tuple$2, 'Tuple$2'); return Tuple$2; })();