1 package com.github.davidmoten.rx.jdbc.tuple;
2
3
4
5
6
7
8
9
10
11
12
13
14 public class Tuple7<T1, T2, T3, T4, T5, T6, T7> {
15
16 private final T1 value1;
17 private final T2 value2;
18 private final T3 value3;
19 private final T4 value4;
20 private final T5 value5;
21 private final T6 value6;
22 private final T7 value7;
23
24
25
26
27
28
29
30
31
32
33
34
35 public Tuple7(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7) {
36 this.value1 = value1;
37 this.value2 = value2;
38 this.value3 = value3;
39 this.value4 = value4;
40 this.value5 = value5;
41 this.value6 = value6;
42 this.value7 = value7;
43 }
44
45 public T1 value1() {
46 return value1;
47 }
48
49 public T2 value2() {
50 return value2;
51 }
52
53 public T3 value3() {
54 return value3;
55 }
56
57 public T4 value4() {
58 return value4;
59 }
60
61 public T5 value5() {
62 return value5;
63 }
64
65 public T6 value6() {
66 return value6;
67 }
68
69 public T7 value7() {
70 return value7;
71 }
72
73 @Override
74 public int hashCode() {
75 final int prime = 31;
76 int result = 1;
77 result = prime * result + ((value1 == null) ? 0 : value1.hashCode());
78 result = prime * result + ((value2 == null) ? 0 : value2.hashCode());
79 result = prime * result + ((value3 == null) ? 0 : value3.hashCode());
80 result = prime * result + ((value4 == null) ? 0 : value4.hashCode());
81 result = prime * result + ((value5 == null) ? 0 : value5.hashCode());
82 result = prime * result + ((value6 == null) ? 0 : value6.hashCode());
83 result = prime * result + ((value7 == null) ? 0 : value7.hashCode());
84 return result;
85 }
86
87 @Override
88 public boolean equals(Object obj) {
89 if (this == obj)
90 return true;
91 if (obj == null)
92 return false;
93 if (getClass() != obj.getClass())
94 return false;
95 Tuple7<?, ?, ?, ?, ?, ?, ?> other = (Tuple7<?, ?, ?, ?, ?, ?, ?>) obj;
96 if (value1 == null) {
97 if (other.value1 != null)
98 return false;
99 } else if (!value1.equals(other.value1))
100 return false;
101 if (value2 == null) {
102 if (other.value2 != null)
103 return false;
104 } else if (!value2.equals(other.value2))
105 return false;
106 if (value3 == null) {
107 if (other.value3 != null)
108 return false;
109 } else if (!value3.equals(other.value3))
110 return false;
111 if (value4 == null) {
112 if (other.value4 != null)
113 return false;
114 } else if (!value4.equals(other.value4))
115 return false;
116 if (value5 == null) {
117 if (other.value5 != null)
118 return false;
119 } else if (!value5.equals(other.value5))
120 return false;
121 if (value6 == null) {
122 if (other.value6 != null)
123 return false;
124 } else if (!value6.equals(other.value6))
125 return false;
126 if (value7 == null) {
127 if (other.value7 != null)
128 return false;
129 } else if (!value7.equals(other.value7))
130 return false;
131 return true;
132 }
133
134 @Override
135 public String toString() {
136 StringBuilder builder = new StringBuilder();
137 builder.append("Tuple7 [value1=");
138 builder.append(value1);
139 builder.append(", value2=");
140 builder.append(value2);
141 builder.append(", value3=");
142 builder.append(value3);
143 builder.append(", value4=");
144 builder.append(value4);
145 builder.append(", value5=");
146 builder.append(value5);
147 builder.append(", value6=");
148 builder.append(value6);
149 builder.append(", value7=");
150 builder.append(value7);
151 builder.append("]");
152 return builder.toString();
153 }
154
155 }