回答編集履歴
1
修正
answer
CHANGED
@@ -92,9 +92,15 @@
|
|
92
92
|
|
93
93
|
@Override
|
94
94
|
public boolean equals(Object obj) {
|
95
|
-
return obj != null && this.getClass().equals(obj.getClass()) && this.
|
95
|
+
return obj != null && this.getClass().equals(obj.getClass()) && this.localTime.equals(
|
96
|
+
((Model) obj).localTime) && this.height == ((Model) obj).height
|
96
|
-
.
|
97
|
+
&& this.weight == ((Model) obj).weight;
|
97
98
|
}
|
99
|
+
|
100
|
+
@Override
|
101
|
+
public int hashCode() {
|
102
|
+
return Objects.hash(localTime, height, weight);
|
103
|
+
}
|
98
104
|
}
|
99
105
|
}
|
100
106
|
//------
|