git.iko.soy/opencode-android
on master help sign in
67 lines 2.3 kB history raw
1// Copyright (c) Facebook, Inc. and its affiliates
2// SPDX-License-Identifier: MIT OR Apache-2.0
4package com.novi.serde;
6import java.util.Objects;
8public final class Tuple6<T0, T1, T2, T3, T4, T5> {
9 public final T0 field0;
10 public final T1 field1;
11 public final T2 field2;
12 public final T3 field3;
13 public final T4 field4;
14 public final T5 field5;
16 public Tuple6(T0 f0, T1 f1, T2 f2, T3 f3, T4 f4, T5 f5) {
17 Objects.requireNonNull(f0, "f0 must not be null");
18 Objects.requireNonNull(f1, "f1 must not be null");
19 Objects.requireNonNull(f2, "f2 must not be null");
20 Objects.requireNonNull(f3, "f3 must not be null");
21 Objects.requireNonNull(f4, "f4 must not be null");
22 Objects.requireNonNull(f5, "f5 must not be null");
23 this.field0 = f0;
24 this.field1 = f1;
25 this.field2 = f2;
26 this.field3 = f3;
27 this.field4 = f4;
28 this.field5 = f5;
29 }
31 public boolean equals(Object obj) {
32 if (this == obj) return true;
33 if (obj == null) return false;
34 if (getClass() != obj.getClass()) return false;
35 Tuple6<?,?,?,?,?,?> other = (Tuple6) obj;
36 if (!Objects.equals(this.field0, other.field0)) {
37 return false;
38 }
39 if (!Objects.equals(this.field1, other.field1)) {
40 return false;
41 }
42 if (!Objects.equals(this.field2, other.field2)) {
43 return false;
44 }
45 if (!Objects.equals(this.field3, other.field3)) {
46 return false;
47 }
48 if (!Objects.equals(this.field4, other.field4)) {
49 return false;
50 }
51 if (!Objects.equals(this.field5, other.field5)) {
52 return false;
53 }
54 return true;
55 }
57 public int hashCode() {
58 int value = 7;
59 value = 31 * value + (this.field0 != null ? this.field0.hashCode() : 0);
60 value = 31 * value + (this.field1 != null ? this.field1.hashCode() : 0);
61 value = 31 * value + (this.field2 != null ? this.field2.hashCode() : 0);
62 value = 31 * value + (this.field3 != null ? this.field3.hashCode() : 0);
63 value = 31 * value + (this.field4 != null ? this.field4.hashCode() : 0);
64 value = 31 * value + (this.field5 != null ? this.field5.hashCode() : 0);
65 return value;
66 }